From eece0f2770f16a1f211a5752b2a98378cc4eac2a Mon Sep 17 00:00:00 2001 From: jspark2000 Date: Wed, 6 Mar 2024 10:21:14 +0000 Subject: [PATCH] fix: modify cloudfront configuration --- aws/cdn/cloudfront.tf | 7 +++---- aws/royals/cloudfront.tf | 10 ++++------ aws/royals/web-acl.tf | 5 ----- 3 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 aws/royals/web-acl.tf diff --git a/aws/cdn/cloudfront.tf b/aws/cdn/cloudfront.tf index 71475d6..20baa6b 100644 --- a/aws/cdn/cloudfront.tf +++ b/aws/cdn/cloudfront.tf @@ -21,10 +21,9 @@ resource "aws_cloudfront_distribution" "main" { } } - price_class = "PriceClass_200" - enabled = true - comment = "skku-royals-cdn-cloudfront-distribution" - aliases = ["cdn.skku-royals.com"] + enabled = true + comment = "skku-royals-cdn-cloudfront-distribution" + aliases = ["cdn.skku-royals.com"] restrictions { diff --git a/aws/royals/cloudfront.tf b/aws/royals/cloudfront.tf index 6d044af..0f2d36f 100644 --- a/aws/royals/cloudfront.tf +++ b/aws/royals/cloudfront.tf @@ -23,12 +23,10 @@ resource "aws_cloudfront_distribution" "main" { origin_id = "vercel" custom_origin_config { - http_port = 80 - https_port = 443 - origin_protocol_policy = "https-only" - origin_ssl_protocols = ["TLSv1.2"] - origin_keepalive_timeout = 5 - origin_read_timeout = 30 + http_port = 80 + https_port = 443 + origin_protocol_policy = "http-only" + origin_ssl_protocols = ["TLSv1.2"] } } diff --git a/aws/royals/web-acl.tf b/aws/royals/web-acl.tf deleted file mode 100644 index 48909ed..0000000 --- a/aws/royals/web-acl.tf +++ /dev/null @@ -1,5 +0,0 @@ -data "aws_wafv2_web_acl" "main" { - name = "CreatedByCloudFront-f2db1d79-1668-4cd1-ab35-2971f090c21f" - scope = "CLOUDFRONT" - provider = aws.east -}