From 1de394fa81c74806cfd06c78be1c9daf29fb67d0 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Wed, 13 Oct 2021 11:46:55 -0400 Subject: [PATCH] Foargetting how to CNAME sucks --- ahoskingit/terraform/dns_ahosking.tf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ahoskingit/terraform/dns_ahosking.tf b/ahoskingit/terraform/dns_ahosking.tf index 29c4d69..f42ac39 100644 --- a/ahoskingit/terraform/dns_ahosking.tf +++ b/ahoskingit/terraform/dns_ahosking.tf @@ -45,11 +45,11 @@ resource "cloudflare_record" "ahosking_home" { resource "cloudflare_record" "ahosking_code" { zone_id = cloudflare_zone.ahosking_com.id - name = "code.ahosking.com" + name = "code" type = "CNAME" ttl = "1" - value = cloudflare_record.ahosking_home.name - proxied = "true" + value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone]) + proxied = true } resource "cloudflare_record" "ahosking_ombi" { @@ -57,8 +57,8 @@ resource "cloudflare_record" "ahosking_ombi" { name = "ombi.ahosking.com" type = "CNAME" ttl = "1" - value = cloudflare_record.ahosking_home.name - proxied = "true" + value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone]) + proxied = true } resource "cloudflare_record" "ahosking_radarr" { @@ -66,8 +66,8 @@ resource "cloudflare_record" "ahosking_radarr" { name = "radarr.ahosking.com" type = "CNAME" ttl = "1" - value = cloudflare_record.ahosking_home.name - proxied = "true" + value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone]) + proxied = true } # email MX value for DNS