From 75fdac61f30fe0d43246e7ccea12279981be2aae Mon Sep 17 00:00:00 2001 From: Thomas Cardin <49320132+ThomasCardin@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:01:14 -0500 Subject: [PATCH] changed record to for loop --- terraform/modules/records/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/modules/records/main.tf b/terraform/modules/records/main.tf index 5e0bad3..c54b566 100644 --- a/terraform/modules/records/main.tf +++ b/terraform/modules/records/main.tf @@ -1,9 +1,9 @@ resource "cloudflare_record" "record" { - for_each = names + for_each = var.names zone_id = var.cloudflare_zone_id value = var.dns - name = each.key + name = each.value type = var.type ttl = 1 proxied = true