No ads. No pop-ups. No bullshit. Just cool tech and free tutorials.">
Do you find working with the
aws_cloudfront_distribution resource slow and painful?
If you work with AWS and Terraform regularly, surely you’ll be familiar with the horrendous waiting times AWS callously submits us to.
A simple trick applied to your
aws_cloudfront_distribution resource should do the trick!
Don’t waste money redirecting to
https with an
Instead, set up a “viewer protocol policy” on the caching behaviour of your AWS Cloudfront distribution.
viewer_protocol_policy = "redirect-to-https"