From 35f4c630377f1522d1f4073b4abf6cc2b8ec3e65 Mon Sep 17 00:00:00 2001 From: Malini Das Date: Fri, 5 Jul 2024 03:25:16 -0400 Subject: [PATCH] add some background to the CloudFront function fix (#518) * add some background to the function fix * Update tofu/modules/services/frontend-infra/main.tf Co-authored-by: Mel <97147377+MelissaAutumn@users.noreply.github.com> --------- Co-authored-by: Malini Das Co-authored-by: Andreas Co-authored-by: Mel <97147377+MelissaAutumn@users.noreply.github.com> --- tofu/modules/services/frontend-infra/main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/tofu/modules/services/frontend-infra/main.tf b/tofu/modules/services/frontend-infra/main.tf index bc12b404a..029f12b61 100644 --- a/tofu/modules/services/frontend-infra/main.tf +++ b/tofu/modules/services/frontend-infra/main.tf @@ -210,6 +210,7 @@ resource "aws_cloudfront_function" "rewrite" { } // If empty, then add a slash! + // Required by AWS, see https://github.com/thunderbird/appointment/pull/510/ if (request.uri === '') { request.uri = '/'; }