Here it is. My version of the S3 static site.

This one is publishable through CloudFormation and uses CodeCommit and CodeBuild to regenerate and publish the site with every push to the host Git repository.

Any change to the CodeCommit Git repository automatically triggers a build through CodeCommit. This build runs the Hugo static site generator on your repo and syncs the results to an S3 bucket configured for serving a static site.

The CloudFormation template supports HTTPS using a free certificate through AWS Certificate Manager, redirection from www to non-www domains, DNS support through Route53, and publishing to the CloudFront CDN. Taken together, the result is an automated deployment of changes to your static site, delivered over HTTPS from local CDNs.

Much credit to this is due to an S3 site configuration developed by Eric Hammond. You can see my version on GitHub.