How to Deploy a New App Version on AWS ECS Using Docker and ECR
A DevOps engineer received updated application code from a developer containing bug fixes and a new feature, requiring a fresh deployment to production. The process involved pulling the latest code from GitHub, building a new Docker image tagged as v2, and pushing it to Amazon ECR alongside the existing v1 image. A new ECS Task Definition revision was created pointing to the updated image URI, replacing the old container reference. The ECS service was then updated to trigger a rolling deployment, where the new container starts and passes health checks before the old one is removed, minimizing downtime. Retaining both image versions in ECR ensures a quick rollback option if the new deployment encounters issues.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in