aws / aws/containers-roadmap

ECR Cross-region replication with options to copy repository policy and life-cycle policy

Open
#1,202 21 comments 117 reactions 0 assignees View on GitHub
ECR Work in Progress
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Request
Add options to replicate repository policy and life-cycle policy with ECR Cross-Region Replication.
### Our use case:
As we know, the purpose of Cross-Region replication for ECR is to reduce the network traffic and the time to pull images from a different region. However, for each repository, we have configured repository policy to manage the access permissions for multiple AWS account. Without the replication of reository policy, the replicated images cannot be accessed unless we have setup the same repositories in the destiation region beforehand.
We have setup our Concourse pipelines in us-east-1 region, and all images will be pushed from this region. And we have clusters setup in both us-east-1 and us-west-2 in different accounts, which would need pull images from ECR. Therefore, when images are replicated to us-west-2, we would like to copy over the repository policy and life-cycle policy over so that all clusters can access the repository without an issue.
### Current solution and problem
Currently, we have setup an CodeBuild job to implement this, but it fails several times due to unkown reason. That's why we need a more reliable solution from AWS to help us resolve this issue.

Contributor guide

Open the contributing guide

Research direction

No repository files, tests, or implementation entry points are named. Start by reading the ECR Cross-Region Replication documentation and the issue's comment thread to clarify the requested policy-copy behavior; done means repository and lifecycle policies can be replicated through explicit options.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.