cloudmaniac / terraform-aws-static-website

Terraform Module to provision an AWS static website using Route53, S3, and CloudFront.
https://registry.terraform.io/modules/cloudmaniac/static-website/aws/
MIT License
48 stars 38 forks source link

Improvement to redirect behaviour #4

Closed msb closed 3 years ago

msb commented 3 years ago

Setting cloudfront's default_root_object to "index.html" seems to have the effect that https://www.{domain}/ redirects to https://{domain}/index.html which works but isn't ideal. Removing default_root_object solves this, however there may be other considerations of which I'm not aware.