CmdID / aws / aws deploy
aws deploy stop-deployment
Attempts to stop an ongoing deployment. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To attempt to stop a deployment
The following stop-deployment example attempts to stop an in-progress deployment that is associated with the user's AWS account.
aws deploy stop-deployment --deployment-id d-A1B2C3111Identify--deployment-idThe unique ID of a deployment.Its output
{
"status": "Succeeded",
"statusMessage": "No more commands will be scheduled for execution in the deployment instances"
}For more information, see Stop a deployment with CodeDeploy in the AWS CodeDeploy User Guide.
Options
--auto-rollback-enabledIndicates, when a deployment is stopped, whether instances that have been updated should be rolled back to the previous version of the application revision.--deployment-idThe unique ID of a deployment.