Verified Commit b08787d2 authored by Kristian Klausen's avatar Kristian Klausen 🎉 Committed by Frederik Schwan
Browse files

tf-stage1/archlinux: Use a local variable for archlinux_org_cname

parent b7af3527
......@@ -59,11 +59,11 @@ resource "hetznerdns_record" "archlinux_org_aaaa" {
}
resource "hetznerdns_record" "archlinux_org_cname" {
for_each = var.archlinux_org_cname
for_each = local.archlinux_org_cname
zone_id = hetznerdns_zone.archlinux.id
name = each.key
ttl = lookup(var.archlinux_org_cname[each.key], "ttl", null)
ttl = lookup(local.archlinux_org_cname[each.key], "ttl", null)
value = each.value.value
type = "CNAME"
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment