Interview Prep/AWS/ECS, EKS, Lambda and ECR

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 →

  1. Add a repository policy granting ecr:BatchGetImage, ecr:GetDownloadUrlForLayer to the account or org ID
  2. The pulling role also needs ecr:GetAuthorizationToken
  3. Use ECR replication rules for regional copies
  4. 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.

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

More on ECS, EKS, Lambda and ECR