From 31f7a9eccaf566d5a55cd6f7ed10797f999977e4 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Fri, 30 Jun 2023 19:34:09 +0200 Subject: [PATCH] allow external editing of group instances in lb modules (#1486) --- modules/net-lb-app-ext/README.md | 2 +- modules/net-lb-app-ext/variables.tf | 2 +- modules/net-lb-app-int/README.md | 2 +- modules/net-lb-app-int/variables.tf | 2 +- modules/net-lb-ext/README.md | 2 +- modules/net-lb-ext/variables.tf | 2 +- modules/net-lb-int/README.md | 2 +- modules/net-lb-int/variables.tf | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/net-lb-app-ext/README.md b/modules/net-lb-app-ext/README.md index 2c7327c6..69c26080 100644 --- a/modules/net-lb-app-ext/README.md +++ b/modules/net-lb-app-ext/README.md @@ -799,7 +799,7 @@ module "glb-0" { | [backend_buckets_config](variables.tf#L23) | Backend buckets configuration. | map(object({…})) | | {} | | [backend_service_configs](variables-backend-service.tf#L19) | Backend service level configuration. | map(object({…})) | | {} | | [description](variables.tf#L56) | Optional description used for resources. | string | | "Terraform managed." | -| [group_configs](variables.tf#L62) | Optional unmanaged groups to create. Can be referenced in backends via key or outputs. | map(object({…})) | | {} | +| [group_configs](variables.tf#L62) | Optional unmanaged groups to create. Can be referenced in backends via key or outputs. | map(object({…})) | | {} | | [health_check_configs](variables-health-check.tf#L19) | Optional auto-created health check configurations, use the output self-link to set it in the auto healing policy. Refer to examples for usage. | map(object({…})) | | {…} | | [https_proxy_config](variables.tf#L74) | HTTPS proxy connfiguration. | object({…}) | | {} | | [labels](variables.tf#L85) | Labels set on resources. | map(string) | | {} | diff --git a/modules/net-lb-app-ext/variables.tf b/modules/net-lb-app-ext/variables.tf index b956f2a9..bc254091 100644 --- a/modules/net-lb-app-ext/variables.tf +++ b/modules/net-lb-app-ext/variables.tf @@ -63,7 +63,7 @@ variable "group_configs" { description = "Optional unmanaged groups to create. Can be referenced in backends via key or outputs." type = map(object({ zone = string - instances = optional(list(string), []) + instances = optional(list(string)) named_ports = optional(map(number), {}) project_id = optional(string) })) diff --git a/modules/net-lb-app-int/README.md b/modules/net-lb-app-int/README.md index 1b07cb17..bec1cd57 100644 --- a/modules/net-lb-app-int/README.md +++ b/modules/net-lb-app-int/README.md @@ -645,7 +645,7 @@ module "ilb-l7" { | [backend_service_configs](variables-backend-service.tf#L19) | Backend service level configuration. | map(object({…})) | | {} | | [description](variables.tf#L23) | Optional description used for resources. | string | | "Terraform managed." | | [global_access](variables.tf#L30) | Allow client access from all regions. | bool | | null | -| [group_configs](variables.tf#L36) | Optional unmanaged groups to create. Can be referenced in backends via key or outputs. | map(object({…})) | | {} | +| [group_configs](variables.tf#L36) | Optional unmanaged groups to create. Can be referenced in backends via key or outputs. | map(object({…})) | | {} | | [health_check_configs](variables-health-check.tf#L19) | Optional auto-created health check configurations, use the output self-link to set it in the auto healing policy. Refer to examples for usage. | map(object({…})) | | {…} | | [labels](variables.tf#L48) | Labels set on resources. | map(string) | | {} | | [neg_configs](variables.tf#L59) | Optional network endpoint groups to create. Can be referenced in backends via key or outputs. | map(object({…})) | | {} | diff --git a/modules/net-lb-app-int/variables.tf b/modules/net-lb-app-int/variables.tf index 40158aca..64127c01 100644 --- a/modules/net-lb-app-int/variables.tf +++ b/modules/net-lb-app-int/variables.tf @@ -37,7 +37,7 @@ variable "group_configs" { description = "Optional unmanaged groups to create. Can be referenced in backends via key or outputs." type = map(object({ zone = string - instances = optional(list(string), []) + instances = optional(list(string)) named_ports = optional(map(number), {}) project_id = optional(string) })) diff --git a/modules/net-lb-ext/README.md b/modules/net-lb-ext/README.md index 3c38a7d2..44bb0605 100644 --- a/modules/net-lb-ext/README.md +++ b/modules/net-lb-ext/README.md @@ -163,7 +163,7 @@ module "nlb" { | [backend_service_config](variables.tf#L23) | Backend service level configuration. | object({…}) | | {} | | [backends](variables.tf#L72) | Load balancer backends, balancing mode is one of 'CONNECTION' or 'UTILIZATION'. | list(object({…})) | | [] | | [description](variables.tf#L83) | Optional description used for resources. | string | | "Terraform managed." | -| [group_configs](variables.tf#L89) | Optional unmanaged groups to create. Can be referenced in backends via outputs. | map(object({…})) | | {} | +| [group_configs](variables.tf#L89) | Optional unmanaged groups to create. Can be referenced in backends via outputs. | map(object({…})) | | {} | | [health_check](variables.tf#L100) | Name of existing health check to use, disables auto-created health check. | string | | null | | [health_check_config](variables.tf#L106) | Optional auto-created health check configuration, use the output self-link to set it in the auto healing policy. Refer to examples for usage. | object({…}) | | {…} | | [labels](variables.tf#L180) | Labels set on resources. | map(string) | | {} | diff --git a/modules/net-lb-ext/variables.tf b/modules/net-lb-ext/variables.tf index fb85afbb..58ae663a 100644 --- a/modules/net-lb-ext/variables.tf +++ b/modules/net-lb-ext/variables.tf @@ -90,7 +90,7 @@ variable "group_configs" { description = "Optional unmanaged groups to create. Can be referenced in backends via outputs." type = map(object({ zone = string - instances = optional(list(string), []) + instances = optional(list(string)) named_ports = optional(map(number), {}) })) default = {} diff --git a/modules/net-lb-int/README.md b/modules/net-lb-int/README.md index b7f1a91c..1282af09 100644 --- a/modules/net-lb-int/README.md +++ b/modules/net-lb-int/README.md @@ -189,7 +189,7 @@ module "ilb" { | [backends](variables.tf#L56) | Load balancer backends, balancing mode is one of 'CONNECTION' or 'UTILIZATION'. | list(object({…})) | | [] | | [description](variables.tf#L75) | Optional description used for resources. | string | | "Terraform managed." | | [global_access](variables.tf#L81) | Global access, defaults to false if not set. | bool | | null | -| [group_configs](variables.tf#L87) | Optional unmanaged groups to create. Can be referenced in backends via outputs. | map(object({…})) | | {} | +| [group_configs](variables.tf#L87) | Optional unmanaged groups to create. Can be referenced in backends via outputs. | map(object({…})) | | {} | | [health_check](variables.tf#L99) | Name of existing health check to use, disables auto-created health check. | string | | null | | [health_check_config](variables.tf#L105) | Optional auto-created health check configuration, use the output self-link to set it in the auto healing policy. Refer to examples for usage. | object({…}) | | {…} | | [labels](variables.tf#L179) | Labels set on resources. | map(string) | | {} | diff --git a/modules/net-lb-int/variables.tf b/modules/net-lb-int/variables.tf index 08c0f3b3..32686eeb 100644 --- a/modules/net-lb-int/variables.tf +++ b/modules/net-lb-int/variables.tf @@ -89,7 +89,7 @@ variable "group_configs" { type = map(object({ zone = string description = optional(string, "Terraform managed.") - instances = optional(list(string), []) + instances = optional(list(string)) named_ports = optional(map(number), {}) })) default = {}