'ECS service cannot pull from ECR

ECS Fargate(ver 1.4.0) service creation is getting failed with below error

Resource initilization error unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve ecr registry auth
Request error caused by post https://api.ecr.us-XX.amazon.aws.com timeout

Things i checked

  1. ECS security group has all traffic allowed
  2. VPC endpoint is created properly for ecr.api and ecr.dkr
  3. ECS task execution role has permission to fetch image form ECR


Solution 1:[1]

First thing to check would be is to see if this is happening with only this project?

Can you try to create a new project and run it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 prasadsunny1