diff --git a/terraform/dns.tf b/terraform/dns.tf index cc3546bfeb521c2c51ab84c6606e6bee1b51031e..b12e03b15438b9ff9003611054258b0d2e0ed33c 100644 --- a/terraform/dns.tf +++ b/terraform/dns.tf @@ -22,3 +22,28 @@ resource "cloudflare_record" "dns_a_apps_wildcard" { type = "A" ttl = 300 } + +resource "cloudflare_record" "dns_aaaa_api" { + zone_id = var.dns_zone_id + name = "api.${var.dns_domain}" + value = hcloud_load_balancer.lb.ipv6 + type = "AAAA" + ttl = 300 +} + +resource "cloudflare_record" "dns_aaaa_apps" { + zone_id = var.dns_zone_id + name = "apps.${var.dns_domain}" + value = hcloud_load_balancer.lb.ipv6 + type = "AAAA" + ttl = 300 +} + + +resource "cloudflare_record" "dns_aaaa_apps_wildcard" { + zone_id = var.dns_zone_id + name = "*.apps.${var.dns_domain}" + value = hcloud_load_balancer.lb.ipv6 + type = "AAAA" + ttl = 300 +}