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.

Step 6: Clean Up

In this step, you'll delete the Amazon EC2 Auto Scaling group to avoid ongoing charges for resources you used during this tutorial. Optionally, you can delete the Amazon EC2 Auto Scaling configuration and AWS CodeDeploy deployment component records.

To clean up resources (CLI)

  1. Delete the Amazon EC2 Auto Scaling group by calling the delete-auto-scaling-group command against CodeDeployDemo-AS-Group. This will also terminate the Amazon EC2 instances.

    aws autoscaling delete-auto-scaling-group --auto-scaling-group-name CodeDeployDemo-AS-Group --force-delete
  2. Optionally, delete the Amazon EC2 Auto Scaling launch configuration by calling the delete-launch-configuration command against the launch configuration named CodeDeployDemo-AS-Configuration:

    aws autoscaling delete-launch-configuration --launch-configuration-name CodeDeployDemo-AS-Configuration
  3. Optionally, delete the application from AWS CodeDeploy by calling the delete-application command against the application named SimpleDemoApp. This will also delete all associated deployment, deployment group, and revision records.

    aws deploy delete-application --application-name SimpleDemoApp

To clean up resources (console)

  1. Delete the Amazon EC2 Auto Scaling group. This also terminates the Amazon EC2 instances:

    Sign in to the AWS Management Console and open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the Amazon EC2 navigation pane, under Auto Scaling, choose Auto Scaling Groups, and then choose the CodeDeployDemo-AS-Group entry.

  3. Choose Actions, choose Delete, and then choose Yes, Delete.

  4. (Optional) Delete the launch configuration. In the navigation bar, under Auto Scaling, choose Launch Configurations, and then choose CodeDeployDemo-AS-Configuration.

  5. Choose Actions, choose Delete launch configuration, and then choose Yes, Delete.

  6. Optionally, delete the application from AWS CodeDeploy. This will also delete all associated deployment, deployment group, and revision records. Open the AWS CodeDeploy console at https://console.aws.amazon.com/codedeploy.

  7. 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.

    In the navigation pane, expand Deploy, and then choose Applications.

  8. In the list of applications, choose SimpleDemoApp.

  9. On the Application details page, choose Delete application.

  10. When prompted, enter Delete, and then choose Delete.