aws / aws/containers-roadmap

[ECR] [request]: Ability to delete images by Cross-Region Replication

Open
#2,006 1 comment 38 reactions 0 assignees View on GitHub
ECR Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**
Proposal would be to add a flag to the ECR Cross Region Replication Settings to enable the replication in both ways - adding **and deleting** images. This would make sure that the replicated repositories are always in sync with the source repository.

**Which service(s) is this request for?**
ECR

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
Currently, Cross Region Replication in ECR only works in one way by distributing images across regions. However, over time this leads to many images in our use case. To keep control over the images in all the regions, we ultimately would like to set the lifecycle policy rules only once in the source repository in ECR to cleanup no longer needed images and want to remove these images in the replicated regions as well. It would be great if it could be possible to also remove images in the replicated regions if they get deleted in the source region repository by using AWS provided functionalities.

**Are you currently working around this issue?**
Our current workaround to solve this problem will be terraform scripting to apply ECR lifecycle policies in all regions to cleanup the images. This is not ideal because we need to keep control and maintain many repositories in the different regions whilst we want to only push and maintain one repository (pushing and cleanup) and would like ECR to handle the replication.

Contributor guide

Open the contributing guide

Research direction

No repository file, test, or entry point is named; begin by reviewing the ECR cross-region replication request and its comment thread. Done means AWS ECR can delete images in replicated regions when they are deleted in the source, using the requested replication setting.

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
Clearly specified
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.