Monday, January 11, 2021

ECR Cross Replication


 Amazon Elastic Container Registry (ECR) is a fully managed container registry that makes it easy to store, manage, share, and deploy your container images and artifacts anywhere.

Replicating container images across regions in Amazon Elastic Container Registry (ECR) automatically has been released, last month.  Prior to this, it was expected to implement the replication yourself; now leave the heavy lifting to AWS and focus on building and running the deploy applications.

To get started you simply enable replication, choose the destination accounts and regions you want ECR to copy images to. After this, every time you push an image to the private ECR repository (or call the replicate API explicitly) ECR automatically replicates the image. If the repository does not yet exist in the destination region, CRR automatically creates it.

To illustrate the business benefits of this powerful feature, let us consider a real life example of development team is based out of the US and the team responsible for the deployment is based out of Europe.

US development team creates a container image and pushes it into a private CRR enabled ECR repository in the us-west-2 region.  As depicted in the diagram, Europe deploy team can use the image in eu-west-1 container orchestrators such as Amazon EKS or Amazon ECS.  It is achievable using automatic Cross Region Replication (CRR) enabled ECR repository feature.

4 comments: