Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.
3.1.2.7. Deploying Container-Based Applications (Amazon ECS, Amazon EKS)
3.1.2.7. Deploying Container-Based Applications (Amazon ECS, Amazon EKS)
Container deployment patterns differ significantly between ECS and EKS. The exam tests your ability to choose the right deployment strategy for each platform.
ECS deployment options:
- Rolling update (default): Replaces tasks in batches. Configure
minimumHealthyPercent(e.g., 50%) andmaximumPercent(e.g., 200%) to control rollout speed vs. availability. - Blue/Green (via CodeDeploy): Routes ALB traffic from old task set to new task set. Supports canary and linear traffic shifting. Instant rollback.
EKS deployment options:
- Rolling update (default K8s): Replaces pods in batches using
maxUnavailableandmaxSurgesettings in the Deployment spec. - Blue/Green (via Ingress): Use NGINX Ingress or AWS ALB Ingress Controller to shift traffic between two Deployments.
- Canary (via service mesh): AWS App Mesh or Istio routes a percentage of traffic to the canary version.
ECR image management for deployments:
# Tag and push new image
docker build -t my-app:v2 .
docker tag my-app:v2 123456789012.dkr.ecr.us-east-1.amazonaws.com/my-app:v2
docker push 123456789012.dkr.ecr.us-east-1.amazonaws.com/my-app:v2
# Update ECS service to use new image
aws ecs update-service --cluster prod --service my-app \
--task-definition my-app:v2 --force-new-deployment
Exam Trap: ECS rolling updates can cause brief periods where both old and new versions serve traffic simultaneously. If your application can't handle two versions running concurrently (e.g., database schema changes), use Blue/Green deployment with CodeDeploy instead. Blue/Green ensures traffic shifts atomically from old to new.

Written byAlvin Varughese•Founder•15 professional certifications