From befb3907aeaeb948ad0868190b82b10d1b594935 Mon Sep 17 00:00:00 2001 From: kiraum Date: Sat, 5 Oct 2024 06:13:23 +0200 Subject: [PATCH] chore: enabling http3 and ipv6 aaaa --- environments/prod/main.tf | 10 ++++++++++ modules/static_website/main.tf | 1 + 2 files changed, 11 insertions(+) diff --git a/environments/prod/main.tf b/environments/prod/main.tf index 529f8dd..adfbfa7 100644 --- a/environments/prod/main.tf +++ b/environments/prod/main.tf @@ -78,6 +78,16 @@ module "route53" { evaluate_target_health = false } }, + # AAAA record for root domain + { + name = "" + type = "AAAA" + alias = { + name = "dpop20p5u4112.cloudfront.net" + zone_id = "Z2FDTNDATAQYW2" + evaluate_target_health = false + } + }, # CNAME record for www subdomain { name = "www" diff --git a/modules/static_website/main.tf b/modules/static_website/main.tf index 0bbaf36..13e8d81 100644 --- a/modules/static_website/main.tf +++ b/modules/static_website/main.tf @@ -215,6 +215,7 @@ resource "aws_cloudfront_distribution" "static_site" { enabled = true is_ipv6_enabled = true + http_version = "http2and3" default_root_object = "index.html" aliases = [var.domain_name, "*.${var.domain_name}"]