terraform-aws-static-website
terraform-aws-static-website copied to clipboard
Versioning needs to be enabled on root bucket
Cloudfront needs to have s3 bucket versioning enabled so objects do not need to be invalided
versioning { enabled = true }
From the Cloudfront service: Invalidating objects removes them from CloudFront edge caches. A faster and less expensive method is to use versioned object or directory names. For more information, see Invalidating Objects in the Amazon CloudFront Developer Guide.
Perhaps add an option to the module to enable versioning and set the cache TTL to give people options.