Merge pull request #1025 from g-greatdevaks/fix/apigee-payg-env-node-config-dynamic-block

fix apigee PAYG env node config dynamic block
This commit is contained in:
Anmol Krishan Sachdeva 2022-11-30 10:23:42 +05:30 committed by GitHub
commit f9f42729b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -47,8 +47,8 @@ resource "google_apigee_environment" "environments" {
dynamic "node_config" {
for_each = try(each.value.node_config, null) != null ? [""] : []
content {
min_node_count = node_config.min_node_count
max_node_count = node_config.max_node_count
min_node_count = each.value.node_config.min_node_count
max_node_count = each.value.node_config.max_node_count
}
}
org_id = local.org_id

View File

@ -4,5 +4,9 @@ environments = {
display_name = "APIs test"
description = "APIs Test"
envgroups = ["test"]
node_config = {
min_node_count = 2
max_node_count = 5
}
}
}
}