terraform-aws-static-website icon indicating copy to clipboard operation
terraform-aws-static-website copied to clipboard

Versioning needs to be enabled on root bucket

Open siteopsio opened this issue 4 years ago • 0 comments

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.

siteopsio avatar Dec 30 '20 14:12 siteopsio