Awesome
Terraform template to provision website on AWS S3 with Cloudfront and Route53
Features
- No coding needed, just set your domain in the configuration
- Covered with integration test against AWS. So it is stable and functioning
Prerequisites
- Installed Terraform
- AWS Account. This account needs to have enough permissions to setup the infrastructure
- AWS Access Key ID
- AWS Secret Access Key
Setup
cp secret.tfvars_template secret.tfvars
. Editsecret.tfvars
, to put your AWS keys there.cp website.tfvars_template website.tfvars
. Editwebsite.tfvars
, put your website domain there- Provision
terraform apply -var-file website.tfvars -var-file secret.tfvars
It also creates locally state file. Read more about it here