This is a Terraform recipe to create an AWS CodePipeline to deploy a static website from GitHub repository to AWS S3, with CloudFront and ACM providing security.
- Create an ACM certificate for the domain name of the website.
- Create a CloudFront distribution that uses the ACM certificate and points to the S3 bucket as the origin.
- Create an S3 bucket that will host the website files.
- Create a CodePipeline that connects to the GitHub repository and triggers and deploy stage whenever there is a new commit.