How to add an ECR for shared Docker images
Introduction
You can create a shared Amazon Elastic Container Registry (ECR) in the Modernisation Platform to store your Docker container images.
The ECR can then be shared to all of your application accounts.
Steps
- Clone the modernisation-platform GitHub repository.
- Add your registry to modernisation-platform/terraform/environments/core-shared-services/ecr_repos.tf
- Do this by copying another teams registry code using the ECR module and modify it accordingly.
- You will need to specify the
push_principals
(who do you want to be able to upload to the ECR) andpull_principals
(who do you want to be able to download from the ECR) - Raise a pull request and post in the #ask-modernisation-platform channel for a review.
- A Modernisation Engineer will review the pull request and merge.
This page was last reviewed on 17 August 2023.
It needs to be reviewed again on 17 February 2024
by the page owner #modernisation-platform
.
This page was set to be reviewed before 17 February 2024
by the page owner #modernisation-platform.
This might mean the content is out of date.