From cb8b144690f29ceb026a43e5c19a373bb53384b9 Mon Sep 17 00:00:00 2001 From: caiocsgomes Date: Sat, 30 Dec 2023 18:16:36 +0200 Subject: [PATCH] adding http to http redirection to cloudfront default behaviour --- infra/cloudfront.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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