Clean up

In this step, we will clean up all resources, we created during this lab, so that no further cost will occur.

1. Delete the AWS SAM template

In your Cloud9 IDE, run the following command to delete the resources we created with our AWS SAM template:

cd ~/environment/wild-rydes-async-messaging/lab-4
aws cloudformation delete-stack \
    --stack-name wild-rydes-async-msg-4

2. Delete the AWS Lambda created Amazon CloudWatch Log Group

Follow this deep link to list the Amazon CloudWatch Log Groups with the name /aws/lambda/wild-rydes, AWS Lambda created during this lab. Select the Amazon CloudWatch Log Group and choose Delete log group from the Actions menu. Repeat for remaining Log Groups.

Detailed description

2. Delete other resources

Delete the Amazon S3 bucket

In your Amazon S3 console, filter for the bucket you have created to upload your code artifacts with AWS SAM, select the bucket and click the Delete button in the top.

Detailed description

You are done!

Delete the Amazon S3 bucket

In your Cloud9 IDE, run the following command to delete the Amazon S3 bucket we created earlier:

aws s3 rb s3://${BUCKET_NAME} —-force

You are done!