Maintained with ☕️ by
IcePanel logo

AWS CodeDeploy now supports application stop hooks during Amazon EC2 Auto Scaling Group scale-ins

Share

Services

CodeDeploy can now call your application’s stop hook during ASG scale-ins so that you can complete ongoing tasks, release application resources, or close outgoing connections. Your application’s stop hooks can also be invoked during ASG instance refresh operations, allowing you to patch your instances without impacting your application’s availability. AWS CodeDeploy is a fully-managed deployment service that automates software deployments to Amazon EC2, AWS ECS, and AWS Lambda. Before, CodeDeploy only executed your [stop application lifecycle hook](https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-server) during a Blue/Green deployment. Utilizing ASG's lifecycle termination hooks, CodeDeploy will now pause instance termination and executes your application's stop hook for any ASG instance termination event. Support for ASG application termination hooks is available in all [AWS Regions](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/) where AWS CodeDeploy is available. To learn more, see [Integration with Amazon EC2 Auto Scaling](https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html#integrations-aws-auto-scaling-behaviors-hook-enable) in the AWS CodeDeploy Developer Guide.