Step 7: Clean up
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
-
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-nameecs-demo-dg
--regionaws-region-id
-
Use the delete-application command to delete the CodeDeploy application.
aws deploy delete-application --application-name
ecs-demo-deployment-group
--regionaws-region-id
-
Use the delete-function command to delete your Lambda hook function.
aws lambda delete-function --function-name
AfterAllowTestTraffic
-
Use the delete-log-group command to delete your CloudWatch log group.
aws logs delete-log-group --log-group-name
/aws/lambda/AfterAllowTestTraffic