Posted On: Nov 17, 2023

Amazon ECR is announcing the preview of repository creation templates, allowing customers to specify initial configuration for repositories that are automatically created by ECR via pull through cache. ECR customers can now 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 are optional to use and 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. Multiple templates can be created and stored in ECR. 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 customize default creation settings.

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