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