Updating a repository creation template
You can edit a repository creation template if you need to change its configurations. Once the repository creation template is edited, the new configurations will apply to the existing template.
Important
This doesn't have any effect on any previously created repositories.
- AWS Management Console
-
To edit a repository creation template (AWS Management Console)
Open the Amazon ECR console at https://console.aws.amazon.com/ecr/
. -
From the navigation bar, choose the Region the repository creation template to edit is in.
-
In the navigation pane, choose Private registry, then choose Settings.
-
From the navigation bar, choose the Repository creation templates.
-
On the Repository creation templates page, select the repository creation template to edit.
-
From the Actions dropdown menu, choose Edit.
-
Review and update the configuration settings.
-
Choose update to apply the new creation template configurations.
- AWS CLI
-
To edit a repository creation template (AWS CLI)
-
Use the update-repository-creation-template command to update an existing repository creation template. You must specify the
prefixvalue of the template. The following example updates a repository creation template with theprodprefix.aws ecr update-repository-creation-template \ --prefixprod\ --image-tag-mutability="IMMUTABLE_WITH_EXCLUSION" \ --image-tag-mutability-exclusion-filters filterType=WILDCARD, filter=latestThe output of the command displays the details of the updated repository creation template.
-