AWS CodeDeploy
Automated application deployment
Automatically deploys new versions to EC2, on-premises servers, Lambda, or ECS based on an `appspec` file, supporting in-place, rolling, and blue/green deployments with automatic rollback on failure.
- Cost$ Low
- Difficulty●●●●●
- Costs money when idle?No
- Serverless
- In examsDVA · SOA
Think of it asLike a crew replacing light bulbs one floor at a time: finish one floor, check it's fine, then move on; if something breaks, put the old bulbs back.
When to use it
✓ Use it when
You need controlled deployments with less downtime and automatic rollback for EC2, Lambda, or ECS.
✗ Avoid it when
You just want to get a web app up quickly without caring about infrastructure → Elastic Beanstalk / App Runner.
Common uses
- Blue/green deployment for ECS behind a load balancer
- Gradually shift Lambda traffic (canary, linear)
- Rolling updates for an EC2 fleet in an Auto Scaling group
What does it cost?
- Pricing model: Free for deployments to EC2, Lambda, and ECS; for on-premises servers, charged per instance update.