miniecs is a CLI tool that allows you to fuzzy finder incremental search your ecs envs and login to your container. And you can execute any commands on your container.
- install go 1.17.x or later
- install session-manager-plugin
brew tap jedipunkz/miniecs
brew install jedipunkz/miniecs/miniecs
go install github.com/jedipunkz/miniecs@latest
A sub-command to login ecs container with incremental searching.
Run 'login' sub-command to login to container. If you don't specify cluster, miniecs find all of your clusters in region. 'region' option is requred.
$ miniecs login --region <REGION_NAME>
You can also specify a cluster and shell. These options are optional. Default shell is 'sh'.
$ miniecs login --region <REGION_NAME> --cluster <CLUSTER_NAME> --shell <SHELL>
A sub-command to execute command in container.
$ miniecs exec \
--region <REGION_NAME> \
--cluster <CLUSTER_NAME> \
--service <SERVICE_NAME> \
--container <CONTAINER_NAME> \
--command <SHELL_COMMAND>
A sub-command to get table information of ecs cluster(s), service(s) and container(s).
$ miniecs list --region <REGION_NAME>