Inspect ECS task state, containers, and attachments.
Section: Task Definitions and Tasks
Describe tasks
bash
bash
aws ecs describe-tasks --cluster my-cluster --tasks arn:aws:ecs:us-west-2:123456789012:task/my-cluster/0123456789abcdefExplanation
Useful for finding stop reasons, ENIs, and exit codes.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Task Definitions and Tasks