Multiple accounts must pull images from one central ECR. How?
IntermediateScenarioECS, EKS, Lambda and ECR
Answer
Situation read → Repository policy plus replication if cross-region.
What I'd do →
- Add a repository policy granting
ecr:BatchGetImage,ecr:GetDownloadUrlForLayerto the account or org ID - The pulling role also needs
ecr:GetAuthorizationToken - Use ECR replication rules for regional copies
- Use pull-through cache for public registries
Why → Centralizing images gives one scan and promotion point.
Interview tip → Pull-through cache avoids Docker Hub rate limits.
More on ECS, EKS, Lambda and ECR
ECS on Fargate or on EC2: how do you choose?BeginnerDeploy a containerized API on ECS behind an ALB. What are the building blocks?BeginnerAn ECS service deployment is stuck, tasks start and stop repeatedly. How do you debug?IntermediateRoll out a new ECS service version with canary and automatic rollback.IntermediateEKS pods need access to S3 without node-level permissions. How?IntermediateUpgrade an EKS cluster from 1.31 to 1.33 safely.Intermediate