Belajar Sendiri

Commands

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 default

Each running task's ARN.

$ aws ecs stop-task --task 666fdccc2e2d4b6894dd422f4eeee8f8

Stop one task. A service starts a new one.