Host a Static Website on a Private S3 Bucket Using CloudFront and OAC
Most tutorials on S3 static website hosting tell you to do two things: make the bucket public and enable static website hosting. That gets your site live in five minutes. But in a real AWS environment those two steps are almost always the wrong approach. A completely private S3 bucket that nobody on the internet can reach directly and a CloudFront distribution in front of it that serves your website globally through edge locations closest to each user. Lower latency for users anywhere in the world and a bucket that stays locked down the entire time.
May 29, 20269 min read


