aws / containers-roadmap

This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS).
https://aws.amazon.com/about-aws/whats-new/containers/
Other
5.21k stars 317 forks source link

[ECR] [request]: More replication filterType options (PREFIX_NOT_MATCH) #1989

Open gfaugere opened 1 year ago

gfaugere commented 1 year ago

Community Note

Tell us about your request ECR replication is great. It allows us to build our images once, push it once to a convenient account/region, and have it replicated to all others!
However, we would like to filter which repositories are replicated. Right now, the only filterType is PREFIX_MATCH. I would like more options, at least a PREFIX_NOT_MATCH option, which would do the opposite: exclude the repositories matching the prefix.

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? Right now, we have a lot of repositories which are replicated. They do not share a common prefix. We want to add new repositories and not have them be replicated, as it would be a waste of resource and "deletion replication" (have an image be deleted from a replicated repo when it is deleted from the "source" repo) is also an unsolved problem without good solution.

Are you currently working around this issue? We are working on it. We do not have a clean, enjoyable solution, and will probably have to maintain a list of replicated repositories, which is not ideal as the prefix for the repositories we do not want is the easy and clean path for us.

Additional context N/A - thanks for reading me!

alexkonkin commented 7 months ago

We also need this feature. It should be something line exclude rule. For example we need to replicate the 299 repos and skip a desired one. It should be possible to do this via the exclude rule.