Built as part of a flash talk "Intro to Terraform". The Terraform scripts included will deploy an S3 website bucket, upload the contents of the public
folder, and deploy a Cloudfront Distribution.
Prerequisite is to have Terraform v0.15.3
or higher installed.
- Clone this repo.
- Go to
terraform
directory. - Run
terraform init
. - Run
terraform apply
. - S3 & Cloudfront URLs will be output.
Note: S3 bucket names must be unique, if you get an error then someone else has created the bucket and you'll need to update the name to something else in terraform/s3.tf