Difference between revisions of "Cloudflare zones"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
− | {{tf cloudflare}} | + | |
+ | {{cloudflare zones django example}} | ||
+ | |||
+ | |||
+ | == See also == | ||
+ | * {{tf cloudflare}} | ||
+ | |||
+ | [[Category:Terraform]] |
Latest revision as of 11:28, 8 March 2024
data "cloudflare_zones" "zones" { filter {} }
data "cloudflare_zones" "zones" { filter {} } locals { zones = {for zone in data.cloudflare_zones.zones.zones : zone.name => zone.id} } resource "cloudflare_record" "record" { for_each = var.records name = each.key type = each.value.type value = each.value.value proxied = each.value.proxied zone_id = lookup(local.zones, regex(".*?([^.]+\\.[^.]+)$", each.key)[0]) lifecycle { ignore_changes = [zone_id] } }
See also[edit]
Advertising: