riboseinc / terraform-aws-s3-cloudfront-website

Terraform module for creating a static S3 website with CloudFront with an SSL certificate (e.g., from ACM)
Apache License 2.0
74 stars 40 forks source link

Allow use for single page applications #26

Closed JBarna closed 4 years ago

JBarna commented 4 years ago

Very simple change to allow use of this library with single page applications. With SPAs we need the application to handle all errors, so in both cloudFront resources I modify the custom_error_response to return a 200 response and point to the index_document file that was provided to the module.

ronaldtse commented 4 years ago

Thank you @JBarna ! Looks great to me, merging.