Using Terraform and Bash to deploy a static website to S3.
- Have AWS CLI installed and a credentials profile configured.
- Own the route domain in R53 (that you pass into the bash script) already.
- Have Terraform installed.
- Put your HTML in the website directory.
- Set up terraform/backend.tf and terraform/provider.tf with the correct profile names and backend config. TODO: Pass this stuff in.
- Run the terraform.sh bash script to execute the Terraform.
./terraform.sh apply cv.website.com profilename ./terraform.sh destroy cv.website.com profilename