add check for domains with no records
This commit is contained in:
parent
9b28310b45
commit
ade9270891
2 changed files with 3 additions and 1 deletions
3
main.tf
3
main.tf
|
@ -8,6 +8,7 @@ locals {
|
|||
|
||||
zone_data = flatten([
|
||||
for zone_name, records in local.zones : [
|
||||
records == null ? [] : [
|
||||
for record_type, record_values in records : [
|
||||
for record_name, record_value in record_values : {
|
||||
zone_name = zone_name
|
||||
|
@ -18,7 +19,7 @@ locals {
|
|||
|
||||
}
|
||||
]
|
||||
]
|
||||
]]
|
||||
])
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ terraform {
|
|||
cloudflare = {
|
||||
source = "cloudflare/cloudflare"
|
||||
version = "~> 4"
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue