Clean up
- Empty S3 bucket
- Open AWS S3 console
- Select fcj-book-store
- Click Empty
- Enter permanently delete
- Click Empty
- Do the same for bucket starting with aws-sam-cli-managed-default-
- Delete CloudFormation stacks
- Execute the below command to delete the AWS SAM application
sam delete --stack-name fcj-book-store
sam delete --stack-name aws-sam-cli-managed-default
- Delete CloudFront distribution
- Open Amazon CloudFront console
- Select the currently displayed distribution
- Click Disable
- Click Disable again
- Wait for distribution to be disabled
- Select distribution again and click Delete
- Click Delete again
- Delete SSL certificate
- Delete Hosted zone
- Open Amazon Route 53 console
- Click created hosted zone
- Select records whose type is different from NS and SOA
- Click Delete records
- Click Delete
- Click Delete zone
- Enter delete
- Click Delete