This repository contains the CloudFormation template for the static website hosting on AWS with support for HTTPS and a custom domain name.
It can be deployed via CloudFormation console or the AWS CLI.
It requires the following inputs:
- ARN of an existing ACM certificate
- Name of an existing Route53 domain
- Name of the new S3 bucket that hosts the website
It creates the following resources:
- S3 bucket for the website content
- CloudFront distribution for HTTPS support
- Route53 record for the custom domain name
There are two templates in this repository:
templates/classic.yml
- uses a public S3 bucket with static website hostingtemplates/modern.yml
- uses a private S3 bucket without static website hosting
Please refer to my blog series for more details.