[AWS] AWS CodeDeploy

Code Deploy automates deployments of an application to cloud (EC, Lambda), or on-premise environments.


  • 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


  • 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 …

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s