Learn how to host a static website on AWS using Amazon S3 and CloudFront, connect your custom domain with Route 53, and secure the website with HTTPS.
In this step-by-step AWS tutorial for beginners, we host a real static website on programguruaws.com using a private Amazon S3 bucket and Amazon CloudFront.
You will learn how to:
Create an Amazon S3 bucket
Keep the S3 bucket private
Upload HTML, CSS, JavaScript, and image files
Create an Amazon CloudFront distribution
Use the CloudFront Free plan
Allow CloudFront to securely access the private S3 bucket
Connect a custom domain from Amazon Route 53
Configure both the root domain and WWW subdomain
Create and validate a TLS certificate through CloudFront
Configure Route 53 DNS routing automatically
Enable HTTPS for the website
Troubleshoot the AccessDenied error on the root domain
Configure index.html as the CloudFront Default Root Object
Access the completed website using the custom domain
In this tutorial, we use the modern private-S3 approach instead of making the S3 bucket publicly accessible.
Our final architecture is:
Visitor
→ Route 53
→ CloudFront
→ Private Amazon S3 Bucket
We also demonstrate an important issue you may encounter after deployment.
The website initially works at:
programguruaws.com/index.html
but the root domain returns AccessDenied.
We fix this by editing the CloudFront General settings and configuring:
Default root object: index.html
After this change is deployed, the website works directly at:
https://programguruaws.com
This tutorial is ideal for AWS beginners who want to learn Amazon S3 static website hosting, CloudFront, Route 53, custom domains, HTTPS, TLS certificates, and secure static website deployment on AWS.
AWS console screens, pricing plans, and included usage allowances can change over time, so always check the current information shown in your AWS account.
#AWS #AmazonS3 #CloudFront #Route53 #AWSTutorial #AWSForBeginners #StaticWebsite #WebHosting #CloudComputing
On this page of the site you can watch the video online Host a Static Website on AWS S3 + CloudFront | Custom Domain & HTTPS (2026) with a duration of hours minute second in good quality, which was uploaded by the user ProgramGuru 11 August 2026, share the link with friends and acquaintances, this video has already been watched 95 times on youtube and it was liked by 3 viewers. Enjoy your viewing!