diff --git a/infra/cloudfront.tf b/infra/cloudfront.tf index f0f3170..57647d1 100644 --- a/infra/cloudfront.tf +++ b/infra/cloudfront.tf @@ -53,7 +53,7 @@ resource "aws_cloudfront_distribution" "s3_distribution" { } } - viewer_protocol_policy = "allow-all" + viewer_protocol_policy = "redirect-to-https" min_ttl = 0 default_ttl = 3600 max_ttl = 86400