This project creates a basic infrastructure for a static site to be hosted in S3 and delivered via CloudFront.
- a
terraform.tfvars
with the values to:
project_key = "terraform-frontend-tutorial"
aws_access_key = "XXXXXXXXXX"
aws_secret_key = "XXXXXXXXXX"
aws_region = "ca-central-1"
s3_bucket_name = "xx.xyz.com"
s3_bucket_env = "development"
domain = "xyz.com"
subdomain = "xx"
hosted_zone = "domain.com"
- run
terraform init
- run
terraform plan
and review the plan - run
terraform apply