I want to create a module for define override settings for this cloudflare ressource https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zone_settings_override
variable "settings" {
type = map(string)
default = {}
}
So I thought about not defining every possible variable, instead just using a map of strings to just put that in the settings block what I want. Sure, I cannot test if its a allowed variable but i’m fine with it. So I thought I cloud do something like the following pseudo code, but something is missing and I dont know what
resource "cloudflare_zone_settings_override" "this" {
zone_id = cloudflare_zone.this.id
settings {
each.key = each.value
}
}