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

Step 6: Clean Up

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

To clean up resources (CLI)

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

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

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

    Copy
    aws deploy delete-application --application-name SimpleDemoApp

To clean up resources (console)

  1. Delete the Auto Scaling group. This will also terminate 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. Optionally, 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. On the AWS CodeDeploy menu, choose Applications.

  8. In the list of applications, choose SimpleDemoApp.

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

  10. When prompted, type the name of the application to confirm you want to delete it, and then choose Delete.