Foargetting how to CNAME sucks

This commit is contained in:
Alexander Hosking 2021-10-13 11:46:55 -04:00
parent 96c5046aa5
commit 1de394fa81

View File

@ -45,11 +45,11 @@ resource "cloudflare_record" "ahosking_home" {
resource "cloudflare_record" "ahosking_code" { resource "cloudflare_record" "ahosking_code" {
zone_id = cloudflare_zone.ahosking_com.id zone_id = cloudflare_zone.ahosking_com.id
name = "code.ahosking.com" name = "code"
type = "CNAME" type = "CNAME"
ttl = "1" ttl = "1"
value = cloudflare_record.ahosking_home.name value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone])
proxied = "true" proxied = true
} }
resource "cloudflare_record" "ahosking_ombi" { resource "cloudflare_record" "ahosking_ombi" {
@ -57,8 +57,8 @@ resource "cloudflare_record" "ahosking_ombi" {
name = "ombi.ahosking.com" name = "ombi.ahosking.com"
type = "CNAME" type = "CNAME"
ttl = "1" ttl = "1"
value = cloudflare_record.ahosking_home.name value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone])
proxied = "true" proxied = true
} }
resource "cloudflare_record" "ahosking_radarr" { resource "cloudflare_record" "ahosking_radarr" {
@ -66,8 +66,8 @@ resource "cloudflare_record" "ahosking_radarr" {
name = "radarr.ahosking.com" name = "radarr.ahosking.com"
type = "CNAME" type = "CNAME"
ttl = "1" ttl = "1"
value = cloudflare_record.ahosking_home.name value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone])
proxied = "true" proxied = true
} }
# email MX value for DNS # email MX value for DNS