Caution: Cost will be involved in creating these resources. For more information, do visit the relavent resource pricing pages as it differs from region to region.
git clone https://github.com/Kenny-AngJY/host-static-website-with-AWS-CloudFront.git
- If you have an ACM certificate in the us-east-1 region and a public Route53 hosted zone. You can modify the default value of the 3 variables below in ./variables.tf
- acm_certificate_arn
- hosted_zone_name
- hosted_zone_id
terraform init
terraform plan
If you left the "acm_certificate_arn" variable empty, there should be 27 resources to be created. Else, 28 resources to be created.terraform apply
As no backend is defined, the default backend will be local. Do wait for 10-15 minutes for the resources to be provisioned.
terraform destroy