Step 5: Clean up - Amazon CodeDeploy
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Step 5: Clean up

To avoid further charges for resources you used during this tutorial, delete the resources created by your Amazon SAM template and the CloudWatch logs created by your Lambda validation functions.

To delete your Amazon CloudFormation stack

  1. Sign in to the Amazon Web Services Management Console and open the Amazon CloudFormation console at https://console.amazonaws.cn/cloudformation.

  2. In the Stacks column, choose your my-date-time-app stack, and then choose Delete.

  3. When prompted, choose Delete stack. The Lambda functions, CodeDeploy application and deployment group, and IAM roles created by Amazon SAM are deleted.

To delete your logs in CloudWatch Logs

  1. Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

  2. From the navigation pane, choose Logs.

  3. From the list of log groups, choose the button next to /aws/lambda/CodeDeployHook_beforeAllowTraffic.

  4. From Actions, choose Delete log group, and then choose Yes, Delete.

  5. From the list of log groups, choose the button next to /aws/lambda/CodeDeployHook_afterAllowTraffic.

  6. From Actions, choose Delete log group, and then choose Yes, Delete.