Skip to content

Commit

Permalink
changed record to for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCardin committed Nov 21, 2024
1 parent 8c63ccd commit 75fdac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/modules/records/main.tf
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 75fdac6

Please sign in to comment.