Clean up

  1. Empty S3 bucket.

    • Open AWS S3 console
    • Select fcj-book-shop-by-myself.
    • Click Empty.
    • Enter permanently delete.
    • Click Empty.
    • Do the same for bucket starting with aws-sam-cli-managed-default-.
  2. 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
      
    • If you have issues when deleting with command. Open AWS Cloudformation console. Then, delete all stacks related to this workshop.

  3. Delete CloudFront distribution

    • Open Amazon CloudFront console.
    • Select the currently displayed distribution.
    • Click Disable.
    • Click Disable again.
    • Wait till distribution to be disabled.
    • Select distribution again and click Delete.
    • Click Delete again.
  4. Delete SSL certificate.

  5. 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.