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}"]