Fix Apigee PAYG Node Config Dynamic Block

Fixed attribute reference issues for the
`node_config` dynamic block.

Changes committed:
- modified:   `modules/apigee/main.tf`
This commit is contained in:
g-greatdevaks 2022-11-29 21:00:14 +05:30
parent 3037a4f519
commit b38c05e3d7
1 changed files with 2 additions and 2 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