Instructions

This page provides instructions for cleaning up the resources created during the preceding modules. Many resources would cost you nothing under the free tier, but removing them is recommended.

Cleaning up resources

To remove and delete resources used by this workshop:

1. S3 Buckets

  1. From Cloud9, to get a list of buckets used for this workshop, enter:
aws s3 ls | grep serverlesspresso
  1. Delete each bucket and its content, replacing your-bucket-name with each bucket name:
aws s3 rb --force s3://your-bucket-name

2. Resources in CloudFormation

  1. From Cloud9, get a list of stacks used in this workshop:
aws cloudformation list-stacks | grep serverlesspresso
  1. Delete each stack beginning with serverlesspresso, replacing your-stack-name with each stack name:
aws cloudformation delete-stack --stack-name your-stack-name

3. EventBridge Rules

  1. From Cloud9, get a list of EventBridge rules used in this workshop:
aws events list-rules --event-bus-name Serverlesspresso
  1. Delete each rule, replacing your-rule-name with the rule name:
aws events delete-rule --name 'your-rule-name'

4. AWS Cloud9

  1. From the Cloud 9 console, select your instance and choose Delete.
  2. This deletes all workshop data from the instance and stops billing.