Skip to content

Commit

Permalink
Merge pull request #1025 from g-greatdevaks/fix/apigee-payg-env-node-…
Browse files Browse the repository at this point in the history
…config-dynamic-block

fix apigee PAYG env node config dynamic block
  • Loading branch information
g-greatdevaks authored Nov 30, 2022
2 parents d9edb8c + 4c5b62f commit f9f4272
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/apigee/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion tests/modules/apigee/fixture/test.env_only.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ environments = {
display_name = "APIs test"
description = "APIs Test"
envgroups = ["test"]
node_config = {
min_node_count = 2
max_node_count = 5
}
}
}
}

0 comments on commit f9f4272

Please sign in to comment.