내용으로 건너뛰기

Is ECR cross-account access allowed in GovCloud?

1

Does anyone know if ECR cross-account access is allowed in GovCloud? The Lambda doc (https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-lambda.html) states it's not possible, but the ECR doc (https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-ecs.html) doesn't mention it either way. I know we recently launched cross-account/region support for ECR replication in GovCloud, but not sure about cross-account access for image sharing

질문됨 4달 전82회 조회
2개 답변
6
수락된 답변

Yes but you need to watch out for:

  • Repository policies must be explicit: You’ll need to enumerate account IDs in your ECR repository policy to grant access.
  • Lambda service principal quirks: Lambda accesses ECR as a service principal, so aws:PrincipalOrgID conditions won’t work — you’ll need to use aws:sourceArn and service-specific conditions.
  • GovCloud limitations: Public registries and pull-through cache rules are not supported in GovCloud.
전문가
답변함 4달 전
1
  • ECR repositories in GovCloud support resource-based policies, so you can share images across GovCloud accounts.
  • However, Lambda in GovCloud does NOT support pulling images cross-account, even if ECR allows it.
  • For cross-account usage, you’d either: replicate images to the other account’s ECR repo, or use ECS or other services that support pulling images cross-account (and have correct IAM permissions).
답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠