main.keyvalues.tf (11 lines of code) (raw):
module "key_values" {
source = "./modules/keyvalue"
for_each = var.key_values
configuration_store_resource_id = azapi_resource.this.id
key = each.value.key
value = each.value.value
content_type = each.value.content_type
label = each.value.label
tags = each.value.tags
depends_on = [azapi_resource.role_assignments]
}