AWS Elastic Container Services (ECS) CLI
List tasks
List tasks and their arn’s:
aws ecs list-tasks --cluster FOO --service-name BAR
Execute-command in the container:
aws ecs execute-command --cluster FOO --container CONTAINER --task TASK \
--interactive --command "/bin/bash"