- Sequential (one-at-a-time): update units one after another.
- Batched / All-at-once: update a percentage or all units simultaneously.
- Blue–green (traffic shifting): provision a parallel environment and move traffic (canary or linear shifting).
- Sequential (one-at-a-time): lowest blast radius, longest duration.
- Batched / percentage-based: faster than sequential, allows partial validation.
- Blue–green / traffic-shifted (canary or linear): safe, controlled cutovers using weighted traffic.
- Install the CodeDeploy agent on each EC2/on‑prem instance.
- Supported in-place deployment styles:
- All‑at‑once — replace all instances simultaneously.
- Batched / percentage (e.g., 50% then 50%) — update groups of instances.
- One‑at‑a‑time — sequential replacement with per‑instance verification.


minimumHealthyPercent / maximumPercent. CodeDeploy for ECS supports these traffic‑weighting patterns:
- Linear — shift traffic incrementally by a fixed percentage over time (for example, 25% every 10 minutes).
- Canary — shift a small percentage first (for example, 5–20%), validate, then cutover the remainder.
- All‑at‑once — switch all traffic immediately.


- Service scheduler rolling update (in‑place): adjust
minimumHealthyPercentandmaximumPercentto control concurrency. - CodeDeploy blue–green: new task set is launched and traffic is shifted using linear/canary strategies.
- Linear example: shift 10% every 10 minutes until reaching 100%.
- Canary example: shift 10% for a short validation, then 100%.
- All‑at‑once example: route all traffic immediately to the new version.

kubectlfor direct manifest application andkubectl rolloutcommands.- Helm charts for templated releases.
- GitOps (Argo CD, Flux) to drive cluster state from a Git repository.
kubectl/Helm, or update the Git repo watched by a GitOps controller to manage rollouts and traffic (e.g., via Kubernetes Services, Ingress, or service mesh).
CodeDeploy focuses on EC2/on‑prem, ECS, and Lambda. For EKS use Kubernetes-native tools (
kubectl, Helm) or GitOps controllers (Argo CD, Flux) to orchestrate rollouts and traffic management.If your organization requires centralized CodeDeploy-style workflows for Kubernetes, implement pipeline steps that execute
kubectl/Helm or integrate GitOps; do not expect a first‑class CodeDeploy driver for EKS at this time.
Examples and small command references
- Launch a simple rolling update in Kubernetes:
kubectl set image deployment/nginx nginx=nginx:1.19
- Adjust ECS service scheduler behavior:
- set
minimumHealthyPercentandmaximumPercentin the service definition.
- set
- Lambda traffic shifting via alias:
- create a new version and update alias weights using the Console, SDK, or CodeDeploy.
- AWS CodeDeploy Documentation
- Amazon ECS Deployments
- AWS Lambda Traffic Shifting with CodeDeploy
- Kubernetes kubectl reference
- Helm — The Kubernetes Package Manager
- Argo CD
- Flux CD
- Three conceptual deployment patterns: sequential, batched (all‑at‑once/percentage), and blue‑green (traffic shifting).
- EC2 commonly uses in‑place strategies (one‑at‑a‑time, batched, all‑at‑once) and can use blue‑green by provisioning replacement fleets.
- ECS and Lambda commonly use blue‑green traffic shifting implemented as linear, canary, or all‑at‑once; ECS also supports native rolling updates via the service scheduler.
- EKS deployments are normally handled with Kubernetes-native tools (
kubectl, Helm) or GitOps; CodeDeploy has no native EKS driver.