Hosting a Static Website on AWS S3 with Route 53 (HTTP) & CloudFront (HTTPS)
This document outlines the steps to host a static website on Amazon S3 and configure it with a custom domain using Route 53. Important: This configuration serves your website over HTTP (not secure). For HTTPS, you’ll need to use CloudFront, which is covered in a separate document.
Prerequisites
- An AWS account.
- A registered domain name (if you want to use a custom domain).
Steps
-
Create an S3 Bucket:
- In the AWS Management Console, navigate to the S3 service.
- Click “Create bucket.”
- Choose a bucket name that ideally matches your domain name (e.g.,
yourdomain.com
). This simplifies configuration later. - Select the desired AWS region.
- Under “Block all public access,” uncheck all the boxes. This is necessary for static website hosting. A more secure approach using bucket policies is used later.
- Click “Create bucket.”
-
Enable Static Website Hosting: