Terminate a running ECS task.
Section: Task Definitions and Tasks
Stop a task
bash
bash
aws ecs stop-task --cluster my-cluster --task arn:aws:ecs:us-west-2:123456789012:task/my-cluster/0123456789abcdef --reason 'manual stop'Explanation
Useful in incident response and manual cleanup.
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