aws ecs list-tasks --cluster
aws ecs list-tasks --cluster <cluster>
Risk: Safe
What it does
Lists the tasks running in an ECS cluster.
When to use it
To check how many copies run, or find a forgotten one.
Example
$ aws ecs list-tasks --cluster defaultEach running task's ARN.
$ aws ecs stop-task --task 666fdccc2e2d4b6894dd422f4eeee8f8Stop one task. A service starts a new one.
Learn it in: ECS: tasks and services · Official docs