From 6b1c9c3afbcfe456f4e37e5ee39a68e6912a8b8e Mon Sep 17 00:00:00 2001 From: Luca Prete Date: Fri, 29 Sep 2023 15:14:43 +0200 Subject: [PATCH] Use UNSPECIFIED as the default bs protocol --- modules/net-lb-int/README.md | 5 +---- modules/net-lb-int/variables.tf | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/net-lb-int/README.md b/modules/net-lb-int/README.md index 59461b635f..02c4fbc847 100644 --- a/modules/net-lb-int/README.md +++ b/modules/net-lb-int/README.md @@ -134,9 +134,6 @@ module "ilb" { ] } } - backend_service_config = { - protocol = "UNSPECIFIED" - } backends = [{ group = module.ilb.groups.my-group.self_link }] @@ -220,7 +217,7 @@ module "ilb" { | [region](variables.tf#L211) | GCP region. | string | ✓ | | | [vpc_config](variables.tf#L222) | VPC-level configuration. | object({…}) | ✓ | | | [address](variables.tf#L17) | Optional IP address used for the forwarding rule. | string | | null | -| [backend_service_config](variables.tf#L23) | Backend service level configuration. | object({…}) | | {} | +| [backend_service_config](variables.tf#L23) | Backend service level configuration. | object({…}) | | {} | | [backends](variables.tf#L57) | Load balancer backends, balancing mode is one of 'CONNECTION' or 'UTILIZATION'. | list(object({…})) | | [] | | [description](variables.tf#L76) | Optional description used for resources. | string | | "Terraform managed." | | [global_access](variables.tf#L82) | Global access, defaults to false if not set. | bool | | null | diff --git a/modules/net-lb-int/variables.tf b/modules/net-lb-int/variables.tf index 26af7f3024..d10f6dbd70 100644 --- a/modules/net-lb-int/variables.tf +++ b/modules/net-lb-int/variables.tf @@ -36,7 +36,7 @@ variable "backend_service_config" { ratio = optional(number) })) log_sample_rate = optional(number) - protocol = optional(string, "TCP") + protocol = optional(string, "UNSPECIFIED") session_affinity = optional(string) timeout_sec = optional(number) })