Ecs Task Troubleshooter

Diagnoses AWS ECS task failures via a stoppedReason-first decision tree covering ResourceInitializationError (ENI trunking, subnet IP exhaustion), CannotPullContainerError (ECR auth, throttle, size limit, private-subnet ECR endpoint), EC2InstanceStateError, capacity provider placement failures, task-role vs execution-role confusion, service event messages (task failed to start, unable to place), CPU/memory oversubscription, container health check failures, deregistered container instances, Fargate platform version issues, and deployment circuit breaker rollbacks. Walks describe-tasks stoppedReason + containers[].reason + describe-services events to a verified root cause with evidence-backed probes. Emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA. Use when an ECS task is stuck in PROVISIONING, transitions to STOPPED, fails placement, cannot pull an image, or the deployment circuit breaker fires.

jhkchan Updated

File contents

jhkchan/aws-agent-skills commit 792c4b2075

Frequently asked questions

npx get-skill add jhkchan/ecs-task-troubleshooter