Dynamically create repositories upon image push to Amazon ECR
Containers Blog
This article explains how to dynamically create repositories in Amazon Elastic Container Registry (ECR) on-demand when pushing container images, eliminating the need to manually pre-provision repositories.
Specifically, the article covers:
- Solution overview utilizing AWS CloudTrail, Amazon EventBridge, and AWS Lambda to automate repository creation
- Deployment model using a Terraform module
- Step-by-step deployment instructions
- Troubleshooting tips
- Key resources deployed (Lambda function, EventBridge rule, IAM roles and policies, CloudWatch log group)
- Cleanup instructions
- Conclusion highlighting the benefits of the automated solution
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Dec 19
2025
2025
Amazon ECR now supports creating repositories on push
Aug 5
2025
2025
Amazon ECR now supports 100,000 images per repository
Jul 25
2024
2024
Amazon ECR repository creation templates are now generally available
Jun 27
2024
2024
Amazon ECR supports Open Container Initiative Image and Distribution specification version 1.1
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.