AWS CodeDeploy now supports suspending Amazon EC2 Auto Scaling processes
AWS CodeDeploy can now suspend Amazon EC2 Auto Scaling processes during EC2 in-place deployments to Auto Scaling groups. CodeDeploy is a fully managed service that automates application deployments to Amazon EC2 instances, on-premises servers, AWS Lambda functions, and Amazon ECS services. This launch helps prevent scaling activities from terminating or replacing instances while CodeDeploy is updating them, which can cause a deployment to fail.
You can choose to suspend any combination of these processes (Terminate, AZRebalance, InstanceRefresh, and ScheduledActions) on a deployment group, or on a single deployment. CodeDeploy suspends the processes you choose before it deploys and resumes them when the deployment succeeds, fails, or is stopped, so you don't need custom scripts to suspend and resume processes during deployments. A setting on the deployment group applies to every deployment in that group, including deployments that your existing pipelines start.
You can configure this feature by using the CodeDeploy console, AWS Command Line Interface (AWS CLI), or AWS SDKs. This feature is available in all AWS Regions, including the AWS GovCloud (US) Regions and the China Regions.
To learn more, see Suspending Amazon EC2 Auto Scaling processes during deployments in the AWS CodeDeploy User Guide, or visit the AWS CodeDeploy product page.