To avoid incurring unnecessary costs, you should clean up all AWS resources created during this workshop. Follow the steps below in order.
First, empty the S3 bucket using the AWS CLI:
aws s3 rm s3://fcaj-book-shop-by-tranvix --recursive
Replace fcaj-book-shop-by-tranvix with your actual S3 bucket name.

Next, delete the S3 bucket:



Run the following command to delete the SAM application and its CloudFormation stack:
sam delete --stack-name fcaj-book-shop
y to confirm deletion of the stack and the S3 artifacts folder.
delete to confirm.You must delete the CloudFront distribution before deleting the SSL certificate, because the certificate is still in use by CloudFront.
delete to confirm.If you registered a domain through Route 53, the domain registration itself is separate from the hosted zone and cannot be refunded. However, you can disable auto-renewal to avoid future charges.