AWS Security ChangesHomeSearch

AWS cli: CodeDeploy update-deployment-group: add --ec2-deployment-options parameter

Service: cli · 2026-10-20 · Documentation low

File: cli/latest/reference/deploy/update-deployment-group.md

Summary

Documents the new --ec2-deployment-options parameter (autoScalingGroupProcessesToSuspend) for update-deployment-group, including shorthand/JSON syntax, valid values, constraints, required autoscaling:SuspendProcesses/ResumeProcesses IAM permissions, and a note about processes remaining suspended if resume fails. Also bumps the CLI version footer from 2.38.1 to 2.38.2.

Security assessment

The change adds CLI parameter documentation for a new CodeDeploy option that suspends Auto Scaling processes during deployments. The IAM permission and failure-mode notes are security-adjacent operational guidance, not a fix for a specific vulnerability or a new security feature.

Evidence

+    [--ec2-deployment-options <value>]

Diff

diff --git a/cli/latest/reference/deploy/update-deployment-group.md b/cli/latest/reference/deploy/update-deployment-group.md
index 3e54d86..e92e7fa 100644
--- a//cli/latest/reference/deploy/update-deployment-group.md
+++ b//cli/latest/reference/deploy/update-deployment-group.md
@@ -15 +15 @@
-  * [AWS CLI 2.38.1 Command Reference](../../index.html) »
+  * [AWS CLI 2.38.2 Command Reference](../../index.html) »
@@ -85,0 +86 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/codede
+    [--ec2-deployment-options <value>]
@@ -855,0 +857,59 @@ JSON Syntax:
+`--ec2-deployment-options` (structure)
+
+> Options that control how CodeDeploy manages Amazon EC2 Auto Scaling groups during a deployment.
+> 
+> autoScalingGroupProcessesToSuspend -> (list)
+>
+>> The Amazon EC2 Auto Scaling processes to suspend during the deployment. CodeDeploy suspends these processes before it deploys to instances in an Auto Scaling group, and resumes them when the deployment succeeds, fails, or is stopped. Valid values are `Terminate` , `AZRebalance` , `InstanceRefresh` , and `ScheduledActions` .
+>> 
+>> This parameter applies only to in-place deployments on the EC2/On-premises compute platform. If the list is empty, or if the deployment does not target instances in an Auto Scaling group, no processes are suspended.
+>> 
+>> The service role for the deployment group must have permission to call `autoscaling:SuspendProcesses` and `autoscaling:ResumeProcesses` on the target Auto Scaling groups. If the processes cannot be suspended, the deployment fails before any instance is updated.
+>> 
+>> If you suspend `ScheduledActions` , scheduled actions with a start time during the deployment are skipped and do not run after the process resumes.
+>> 
+>> ### Note
+>> 
+>> If CodeDeploy cannot resume the processes, the deployment fails and the processes stay suspended until you resume them with the Auto Scaling `ResumeProcesses` action. While `Terminate` is suspended, Auto Scaling does not replace unhealthy instances. If you suspend `Terminate` , configure a trigger that notifies you when a deployment fails.
+>> 
+>> Constraints:
+>> 
+>>   * min: `0`
+>>   * max: `4`
+>> 
+
+>> 
+>> (string)
+>>
+>>> An Amazon EC2 Auto Scaling process that CodeDeploy can suspend during an in-place deployment. Valid values are `Terminate` , `AZRebalance` , `InstanceRefresh` , and `ScheduledActions` .
+>>> 
+>>> Possible values:
+>>> 
+>>>   * `Terminate`
+>>>   * `AZRebalance`
+>>>   * `InstanceRefresh`
+>>>   * `ScheduledActions`
+>>> 
+
+>>> 
+>>> Constraints:
+>>> 
+>>>   * min: `1`
+>>>   * max: `255`
+>>> 
+
+
+Shorthand Syntax:
+    
+    
+    autoScalingGroupProcessesToSuspend=string,string
+    
+
+JSON Syntax:
+    
+    
+    {
+      "autoScalingGroupProcessesToSuspend": ["Terminate"|"AZRebalance"|"InstanceRefresh"|"ScheduledActions", ...]
+    }
+    
+
@@ -1038 +1098 @@ hooksNotCleanedUp -> (list)
-  * [AWS CLI 2.38.1 Command Reference](../../index.html) »
+  * [AWS CLI 2.38.2 Command Reference](../../index.html) »