From 9891595a4dfcde4a55c2377ab03986a8d2900782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Sun, 24 Nov 2024 01:11:07 +0200 Subject: [PATCH] infra: remove api cloudfront cache --- terraform/cloudfront.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/cloudfront.tf b/terraform/cloudfront.tf index b207a38..d04139c 100644 --- a/terraform/cloudfront.tf +++ b/terraform/cloudfront.tf @@ -34,7 +34,7 @@ resource "aws_cloudfront_distribution" "main" { allowed_methods = ["GET", "HEAD", "OPTIONS"] cached_methods = ["GET", "HEAD", "OPTIONS"] target_origin_id = aws_lb.main.dns_name - cache_policy_id = aws_cloudfront_cache_policy.default.id + cache_policy_id = "4135ea2d-6df8-44a3-9df3-4b5a84be39ad" #Managed-CachingDisabled origin_request_policy_id = aws_cloudfront_origin_request_policy.default.id viewer_protocol_policy = "redirect-to-https" compress = true