Provision S3 bucket, write HTML to S3, add READ policy to S3, and configure static website documents using Terraform (see step1).
terraform init # Initialize working directory
terraform validate # Verify syntax and dependencies
terraform plan # Preview changes to be made
terraform apply -auto-approve # Apply changes to infrastructure
Public bucket; not aligned with security best practices.
Does not support HTTPS.
STEP 2:
Configure Cloudfront Distribution (see step2_cf-only), Route53 and ACM using Terraform (see step2_cf_rt53).
terraform init # Initialize working directory
terraform validate # Verify syntax and dependencies
terraform plan # Preview changes to be made
terraform apply -auto-approve # Apply changes to infrastructure