A company is migrating to AWS and must ensure that containers can pull images securely from a private registry across accounts. They also need to rotate credentials without redeploying services. Which solution best meets these needs?

Answer

Use Amazon ECR with cross-account access via IAM roles and least-privilege permissions, leveraging temporary credentials from instance/service roles for token-based image pulls

Explanation

Cross-account ECR access should be enforced with IAM roles and temporary credentials rather than static secrets. ECR image pulls use authentication tokens derived from the caller’s role/session, enabling rotation without service redeployment.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list