There are more AWS SDK examples available in the AWS Doc SDK Examples
Use UpdateDeploymentGroup
with a CLI
The following code examples show how to use UpdateDeploymentGroup
.
- AWS CLI
-
To change information about a deployment group
The following
update-deployment-group
example changes the settings of a deployment group that is associated with the specified application.aws deploy update-deployment-group \ --application-name
WordPress_App
\ --auto-scaling-groupsMy_CodeDeployDemo_ASG
\ --current-deployment-group-nameWordPress_DG
\ --deployment-config-nameCodeDeployDefault.AllAtOnce
\ --ec2-tag-filtersKey=Name,Type=KEY_AND_VALUE,Value=My_CodeDeployDemo
\ --new-deployment-group-nameMy_WordPress_DepGroup
\ --service-role-arnarn:aws:iam::80398EXAMPLE:role/CodeDeployDemo-2
This command produces no output.
-
For API details, see UpdateDeploymentGroup
in AWS CLI Command Reference.
-