Remove incompatible balancing_mode (#1769)
## net-lb-int * Fix error on apply of example: ``` Error creating RegionBackendService: googleapi: Error 400: Invalid value for field 'resource.backends[0].balancingMode': 'UTILIZATION'. Balancing mode must be CONNECTION for an INTERNAL backend service., invalid ``` * remove unused `balancing_mode` variable, as only one value is possible anyhow ## net-lb-ext * update in the `backends` description ## net-lb-proxy-int * update in the `backends` description ## net-lb-app-int * added validation of `balancing_mode` * fixed other validations ## net-lb-app-ext * added validation of `balancing_mode` * fixed other validations * removed validation for `locality_lb_policy` as this variable is not used in this module Closes: #1767
This commit is contained in:
committed by
GitHub
parent
6c48512f7e
commit
c21fa4558f
@@ -160,7 +160,7 @@ module "nlb" {
|
||||
| [region](variables.tf#L216) | GCP region. | <code>string</code> | ✓ | |
|
||||
| [address](variables.tf#L17) | Optional IP address used for the forwarding rule. | <code>string</code> | | <code>null</code> |
|
||||
| [backend_service_config](variables.tf#L23) | Backend service level configuration. | <code title="object({ connection_draining_timeout_sec = optional(number) connection_tracking = optional(object({ idle_timeout_sec = optional(number) persist_conn_on_unhealthy = optional(string) track_per_session = optional(bool) })) failover_config = optional(object({ disable_conn_drain = optional(bool) drop_traffic_if_unhealthy = optional(bool) ratio = optional(number) })) locality_lb_policy = optional(string) log_sample_rate = optional(number) port_name = optional(string) protocol = optional(string, "UNSPECIFIED") session_affinity = optional(string) timeout_sec = optional(number) })">object({…})</code> | | <code>{}</code> |
|
||||
| [backends](variables.tf#L72) | Load balancer backends, balancing mode is one of 'CONNECTION' or 'UTILIZATION'. | <code title="list(object({ group = string description = optional(string, "Terraform managed.") failover = optional(bool, false) }))">list(object({…}))</code> | | <code>[]</code> |
|
||||
| [backends](variables.tf#L72) | Load balancer backends. | <code title="list(object({ group = string description = optional(string, "Terraform managed.") failover = optional(bool, false) }))">list(object({…}))</code> | | <code>[]</code> |
|
||||
| [description](variables.tf#L83) | Optional description used for resources. | <code>string</code> | | <code>"Terraform managed."</code> |
|
||||
| [group_configs](variables.tf#L89) | Optional unmanaged groups to create. Can be referenced in backends via outputs. | <code title="map(object({ zone = string instances = optional(list(string)) named_ports = optional(map(number), {}) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [health_check](variables.tf#L100) | Name of existing health check to use, disables auto-created health check. | <code>string</code> | | <code>null</code> |
|
||||
|
||||
@@ -70,7 +70,7 @@ variable "backend_service_config" {
|
||||
}
|
||||
|
||||
variable "backends" {
|
||||
description = "Load balancer backends, balancing mode is one of 'CONNECTION' or 'UTILIZATION'."
|
||||
description = "Load balancer backends."
|
||||
type = list(object({
|
||||
group = string
|
||||
description = optional(string, "Terraform managed.")
|
||||
|
||||
Reference in New Issue
Block a user