Amazon ECR repository creation templates are now generally available

Posted on: Jul 25, 2024

Amazon Elastic Container Registry (ECR) is announcing the general availability of repository creation templates, which allow customers to specify initial configuration for repositories that are automatically created by ECR via pull through cache and replication. ECR customers can specify configuration for these repositories, including encryption settings, lifecycle policies, and repository permissions. This enables customers to define custom configurations and assign them as defaults for various use cases within their registries.

Repository creation templates can specify configuration for all repository settings including resource-based access policies, tag immutability, encryption, and lifecycle policies. Each template contains a customer specified prefix which is used to match new repositories to a specific template. As new repositories are created by ECR, the configuration is applied automatically. This enables customers to control which configuration is applied to new repositories created via pull through cache and replication, and customize default creation settings.

Repository creation templates are available in all AWS regions, excluding AWS GovCloud (US) Regions and AWS China Regions. To learn more about this feature, please visit our user guide.