Skip to content

AWS Technologies Blog

Menu
  • Home
  • KB
  • Services
  • Resources
  • Posts
  • Find
    • Categories
    • Tags
  • About
Menu

Code deploy lifecycles

Posted on May 11, 2025 by wpadmin

Lifecycle event hook availability

The following table lists the lifecycle event hooks available for each deployment and rollback scenario.

Lifecycle event nameAuto Scaling launch deployment¹Auto Scaling termination deployment¹In-place deployment²Blue/green deployment: Original instancesBlue/green deployment: Replacement instancesBlue/green deployment rollback: Original instancesBlue/green deployment rollback: Replacement instances
ApplicationStop✓✓✓✓
DownloadBundle³✓✓✓
BeforeInstall✓✓✓
Install³✓✓✓
AfterInstall✓✓✓
ApplicationStart✓✓✓
ValidateService✓✓✓
BeforeBlockTraffic✓✓✓✓
BlockTraffic³✓✓✓✓
AfterBlockTraffic✓✓✓✓
BeforeAllowTraffic✓✓✓✓
AllowTraffic³✓✓✓✓
AfterAllowTraffic✓✓✓✓
¹ For information about Amazon EC2 Auto Scaling deployments, see How Amazon EC2 Auto Scaling works with CodeDeploy.

Run order of hooks in a deployment

Auto Scaling launch deployments

During an Auto Scaling launch deployment, CodeDeploy runs event hooks in the following order.

For more information about Auto Scaling launch deployments, see How Amazon EC2 Auto Scaling works with CodeDeploy.

The order of event hooks during an Auto Scaling launch deployment.

  • Product List
  • Documentation

billing ciem containers cost cspm ebs ec2 ecs edge eks elb event Firewall fsx hybrid iam lambda NACL outpostd policies pop princing rds route53 s3 security serverless services SG siem storage vpc

  • Amazon FSx
  • aws
  • aws notes
  • billing
  • cloud
  • compute
  • containers
  • core
  • databases
  • development
  • ebs
  • ec2
  • ecs
  • edge
  • efs
  • eks
  • hybrid
  • iam
  • lambda
  • network
  • outposts
  • pricing
  • rds
  • route53
  • s3
  • security
  • serverless
  • services
  • storage
  • support
  • vpc
©2025 AWS Technologies Blog | Built using WordPress and Responsive Blogily theme by Superb