Fix modules to support new Apigee X environment types (#1841)

* Update main.tf

* Update variables.tf

* Update main.tf

Updated environment members to be alphabetical order

* fixed linting and terraform fmt

* removed venv

* removed venv directory

---------

Co-authored-by: Teo De Las Heras <teodlh@google.com>
This commit is contained in:
Teodelas
2023-11-06 03:56:03 -05:00
committed by GitHub
parent a877f0541b
commit 0f502a8cfb
4 changed files with 12 additions and 9 deletions

View File

@@ -40,11 +40,11 @@ resource "google_apigee_envgroup" "envgroups" {
resource "google_apigee_environment" "environments" {
for_each = var.environments
name = each.key
display_name = each.value.display_name
description = each.value.description
deployment_type = each.value.deployment_type
api_proxy_type = each.value.api_proxy_type
deployment_type = each.value.deployment_type
description = each.value.description
display_name = each.value.display_name
name = each.key
dynamic "node_config" {
for_each = try(each.value.node_config, null) != null ? [""] : []
content {
@@ -53,6 +53,7 @@ resource "google_apigee_environment" "environments" {
}
}
org_id = local.org_id
type = each.value.type
lifecycle {
ignore_changes = [
node_config["current_aggregate_node_count"]