All services

Developer Tools

AWS CodeDeploy

Automated deployments to EC2, Lambda and ECS.

Official docs

Overview

CodeDeploy executes deployments with rolling, blue/green or canary strategies and integrates with CloudWatch alarms to auto-rollback.

When to use it

  • Zero-downtime deployments
  • Canary releases with automatic rollback
  • Coordinated multi-host rollouts

Setup

  1. Create an application + deployment group (EC2 ASG / ECS service / Lambda alias).
  2. Provide an appspec.yml describing hooks (BeforeInstall, AfterAllowTraffic…).
  3. Wire up CloudWatch alarms for auto-rollback.

How to use

Canary 10%

Use CodeDeployDefault.LambdaCanary10Percent5Minutes traffic-shift config.

QA use cases

  • Run smoke tests in the AfterAllowTestTraffic hook before shifting prod traffic.
  • Auto-rollback when a synthetic canary metric breaches an alarm during deploy.