Deploying a Static S3 Website With Terraform

A Static Website with CDN Support  

Watch video on YouTube

In this video we will set up an automatic deployment CI/CD pipeline which deploys our static website to S3.

We will then create a Terraform project which will orchestrate resources in AWS, and create an S3 bucket, and IAM user to use in our pipeline.

With the IAM credentials and S3 bucket, we create a CircleCI workflow which builds our website from our GIT repository, and then pushes our rendered website to S3.

Finally we add an AWS CloudFront CDN distribution in front of our S3 static website, and then set up a Route53 zone and routes to point DNS to our CloudFront site.

Some relevant code

comments powered by Disqus