Cleanup

To avoid incurring unexpected charges, please ensure you clean up all AWS resources created during this workshop.

  1. Delete CloudWatch Alarms

    • Open the AWS CloudWatch console.
    • Choose All alarms on the left navigation pane.
    • Select the fcaj-fail-connect-to-dynamodb-alarm and click Actions -> Delete.
    • Confirm the deletion.
  2. Delete SNS Topic

    • Open the Amazon SNS console.
    • Select the fcj_cloudwatch_alarm_topic created in the earlier steps.
    • Click Delete and confirm.
  3. Empty S3 buckets

    • CloudFormation cannot delete S3 buckets that contain objects. You must empty them first.
    • Open the AWS S3 console.
    • Find the SAM artifact bucket starting with aws-sam-cli-managed-default- and any application buckets (e.g. fcaj-book-shop-..., book-image-shop-..., book-image-resize-shop-...).
    • Select each bucket, click Empty, type permanently delete to confirm, and then click Empty.
  4. Delete CloudFormation stacks

    • Execute the below commands in your terminal to delete the AWS SAM applications securely:

      sam delete --stack-name fcaj-book-store
      sam delete --stack-name aws-sam-cli-managed-default
      
    • Alternatively, if you encounter any issues via the CLI, open the AWS CloudFormation console. Select the fcaj-book-store and aws-sam-cli-managed-default stacks and click Delete.