From 3419ededa5fd6c6dfd1d904d6f4e6de1ef0892dd Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 12 Aug 2024 09:48:54 +0200 Subject: [PATCH] fix: replace deprecated cloudflare_record value with content --- main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index c450908..a909e9c 100644 --- a/main.tf +++ b/main.tf @@ -116,7 +116,7 @@ resource "cloudflare_record" "serverv4" { zone_id = var.cloudflare_zones[try(each.value.dns_zone, var.server_dns_zone)] name = each.value.name - value = hcloud_server.server[each.value.name].ipv4_address + content = hcloud_server.server[each.value.name].ipv4_address type = "A" ttl = 1 } @@ -126,7 +126,7 @@ resource "cloudflare_record" "serverv6" { zone_id = var.cloudflare_zones[try(each.value.dns_zone, var.server_dns_zone)] name = each.value.name - value = hcloud_server.server[each.value.name].ipv6_address + content = hcloud_server.server[each.value.name].ipv6_address type = "AAAA" ttl = 1 } @@ -136,7 +136,7 @@ resource "cloudflare_record" "record" { zone_id = each.value.zone_id name = each.value.record_name - value = each.value.record_value + content = each.value.record_value type = each.value.record_type ttl = each.value.record_ttl }