Code Deploy automates deployments of an application to cloud (EC, Lambda), or on-premise environments.
Features
- Minimize downtime, stop and rollback, centralized control
Deployment Types
With the rolling deployment, CodeDeploy eliminates the downtime of your application during the deployment.
In-place deployment
- Existing servers are updated with a new version of applications
Blue/Green deployment (EC2)
- Traffic is shifted from old instances to new ones
Lambda
- Traffic is shifted from one Lambda to another
- Canary
- Traffic is shifted in two increments.
- The first increment of traffic is shifted to a new version, wait for a specific time, and shift the second increment.
- Linear
- Traffic is shifted in equal increments (predetermined percentage) with a specified interval
- All at once
- All traffic is shifted immediately
Code Deploy AppSec file
- source, destination, what to install
Lifecycle Hooks
- BeforeInstall, AfterInstall, ApplicationStart, ApplicationStop, ValidateService …