Difference between revisions of "Cloudflare zones"
Jump to navigation
Jump to search
(Created page with " data "cloudflare_zones" "zones" { filter {} } {{tf cf}}") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
− | {{tf | + | |
+ | {{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: