AWS CodeDeploy
User Guide (API Version 2014-10-06)

The procedures in this guide support the new console design. If you choose to use the older version of the console, you will find many of the concepts and basic procedures in this guide still apply. To access help in the new console, choose the information icon.

Stop a Deployment with AWS CodeDeploy

You can use the AWS CodeDeploy console, the AWS CLI, or the AWS CodeDeploy APIs to stop deployments associated with your AWS account.

Warning

Stopping an EC2/On-Premises deployment can leave some or all of the instances in your deployment groups in an indeterminate deployment state. For more information, see Stopped and Failed Deployments.

Stop a deployment (console)

  1. Sign in to the AWS Management Console and open the AWS CodeDeploy console at https://console.aws.amazon.com/codedeploy.

    Note

    Sign in with the same account or IAM user information that you used in Getting Started with AWS CodeDeploy.

  2. In the navigation pane, expand Deploy, and choose Deployments.

    Note

    If no entries are displayed, make sure the correct region is selected. On the navigation bar, in the region selector, choose one of the regions listed in Region and Endpoints in the AWS General Reference. AWS CodeDeploy is supported in these regions only.

  3. Choose the deployment you want to stop do one of the following:

    1. Choose Stop deployment to stop the deployment without a rollback.

    2. Choose Stop and roll back deployment to stop and roll back the deployment

    For more information, see Redeploy and Roll Back a Deployment with AWS CodeDeploy.

    Note

    If Stop deployment and Stop and roll back deployment are unavailable, the deployment has progressed to a point where it cannot be stopped.

Stop a deployment (CLI)

Call the stop-deployment command, specifying the deployment ID. To view a list of deployment IDs, call the list-deployments command.