Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Step 7: Clean up

Focus mode
Step 7: Clean up - AWS CodeDeploy

When you have finished this tutorial, clean up the resources associated with it to avoid incurring charges for resources that you aren't using. The resource names in this step are the names suggested in this tutorial (for example, ecs-demo-codedeploy-app for the name of your CodeDeploy application). If you used different names, then be sure to use those in your cleanup.

To clean up the tutorial resources
  1. Use the delete-deployment-group command to delete the CodeDeploy deployment group.

    aws deploy delete-deployment-group --application-name ecs-demo-deployment-group --deployment-group-name ecs-demo-dg --region aws-region-id
  2. Use the delete-application command to delete the CodeDeploy application.

    aws deploy delete-application --application-name ecs-demo-deployment-group --region aws-region-id
  3. Use the delete-function command to delete your Lambda hook function.

    aws lambda delete-function --function-name AfterAllowTestTraffic
  4. Use the delete-log-group command to delete your CloudWatch log group.

    aws logs delete-log-group --log-group-name /aws/lambda/AfterAllowTestTraffic
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.