Accelerate Static Websites with Cloudfront

Introduce

Technical Note: This tutorial uses S3 website endpoint with CloudFront, which requires custom origin configuration. For better security, AWS recommends using S3 bucket origin with Origin Access Control (OAC) instead of S3 website endpoints. See CloudFront OAC Documentation for production-ready setup.

Congratulations on hosting a static website - successfully on Amazon S3 service, but need to make your S3 public! So how to host a Static Website on Amazon S3 without publicizing any information about your bucket?

This lab will walk you through the steps to host static web content in Amazon S3 bucket , protected and accelerated by Amazon CloudFront . The skills learned will help you ensure your workloads are aligned with the AWS Well-Architected Framework.

example

Expense

References

Steps to take

  1. Block all public access to S3
  2. ConfigAmazon CloudFront
  3. Test CloudFront