Updating a repository creation template - Amazon ECR
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.

Amazon Web Services Management Console
To edit a repository creation template (Amazon Web Services Management Console)
  1. Open the Amazon ECR console at https://console.amazonaws.cn/ecr/.

  2. From the navigation bar, choose the Region the repository creation template to edit is in.

  3. In the navigation pane, choose Private registry, then choose Settings.

  4. From the navigation bar, choose the Repository creation templates.

  5. On the Repository creation templates page, select the repository creation template to edit.

  6. From the Actions dropdown menu, choose Edit.

  7. Review and update the configuration settings.

  8. Choose update to apply the new creation template configurations.

Amazon CLI
To edit a repository creation template (Amazon CLI)
  • Use the update-repository-creation-template command to update an existing repository creation template. You must specify the prefix value of the template. The following example updates a repository creation template with the prod prefix.

    aws ecr update-repository-creation-template \ --prefix prod \ --image-tag-mutability="IMMUTABLE"

    The output of the command displays the details of the updated repository creation template.