CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

2 in the AWS CLI reference
--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.