Interview Prep/AWS/Containers (ECS, Fargate, EKS add-ons)

ECS tasks start and immediately stop with "CannotPullContainerError". What do you check?

IntermediateScenarioContainers (ECS, Fargate, EKS add-ons)
Answer

Check the image URI and tag exist in ECR, the task execution role has ECR pull permissions, and tasks in private subnets have a route to ECR (NAT or ECR and S3 endpoints). For Fargate in a public subnet, the task needs a public IP assigned to reach ECR without NAT.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on Containers (ECS, Fargate, EKS add-ons)