- Newest
- Most votes
- Most comments
Your observation about AWS App Runner's auto-deployment behavior with ECR images is correct, but there are some important details to clarify.
App Runner does support automatic deployment, but it has specific limitations when it comes to ECR images. The auto-deployment feature works differently depending on the source of your application.
For ECR images, App Runner's automatic deployment is indeed tied to the "latest" tag. When you push a new image with the "latest" tag to your ECR repository, App Runner detects this change and initiates an automatic deployment. This is why you saw the deployment start only after you tagged your new image as "latest".
However, it's important to note that App Runner doesn't support automatic deployment for all types of ECR repositories. Specifically, automatic deployment is not supported for Amazon ECR Public images, or for images in an Amazon ECR repository that belongs to a different AWS account than the one your App Runner service is in.
For best practices and more reliable deployments, it's recommended to use explicit version tags for your images rather than relying solely on the "latest" tag. You can then manually trigger deployments when you want to update your application, which gives you more control over when changes are applied.
If you need more flexible automatic deployment options, you might consider using source code deployment instead of container images, as App Runner offers more comprehensive CI/CD capabilities for source code repositories.
Sources
Deploying a new application version to App Runner - AWS App Runner
SourceConfiguration - AWS App Runner
App Runner architecture and concepts - AWS App Runner
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
