This Terraform stack provisions the AWS resources required for the staging Jekyll site:
index.htmlus-east-1A and AAAA alias records for rx2solutions-staging.instantbrains.commain.tf - resource definitionsvariables.tf - input variablesoutputs.tf - values consumed by local deploy toolingterraform.tfvars - local, untracked values copied from the examplecd infrastructure/staging-site
cp terraform.tfvars.example terraform.tfvars
terraform init
terraform apply
From the repo root you can use:
./scripts/provision-staging-site.sh
That script will:
terraform.tfvars if it does not existterraform initterraform apply.env.staging.local from Terraform outputsus-east-1, which this stack handles automatically./case-studies/example/ need a viewer-request rewrite to /case-studies/example/index.html. This stack provisions that rewrite automatically.instantbrains.com must live in the same AWS account or be readable through your current AWS credentials.