Add name overrides for Internal and External Load Balancers (#2420)
* Add override_name optional variable * Add override name optional variable * Allow override for each forwarding rule * Add optional override_name variable to forwarding_rules_config * Remove duplicate (unused) variable override_name * Add optional override_name variable for network peering * Add optional override_name variable for network peering * Formatting * Update VPN tunnel interface name handling for override * Update bgp peer handling for override * Added renaming for both sides of peering * Fix precondition * Remove spurious folders * Apply suggestions to peering module * Use coalesce and name (instead of override_name) * remove unneeded null * Revert windows style slashes in readme * Fix more null checks * Fix unneeded null checks in net-lb-int * Change override_name back to name in the rest of the locations, bgppeer, tunnel and interface names * Fix linter * Update READMEs --------- Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com> Co-authored-by: unknown <jack@JACK-PC.lfn.arpa> Co-authored-by: jacklever-hub24 <jack.lever@hub24.com.au> Co-authored-by: Julio Castillo <jccb@google.com>
This commit is contained in:
@@ -30,6 +30,7 @@ variable "backend_service_config" {
|
||||
ratio = optional(number)
|
||||
}))
|
||||
log_sample_rate = optional(number)
|
||||
name = optional(string)
|
||||
protocol = optional(string, "UNSPECIFIED")
|
||||
session_affinity = optional(string)
|
||||
timeout_sec = optional(number)
|
||||
@@ -72,6 +73,7 @@ variable "forwarding_rules_config" {
|
||||
description = optional(string)
|
||||
global_access = optional(bool, true)
|
||||
ip_version = optional(string)
|
||||
name = optional(string)
|
||||
ports = optional(list(string), null)
|
||||
protocol = optional(string, "TCP")
|
||||
}))
|
||||
@@ -105,6 +107,7 @@ variable "health_check_config" {
|
||||
description = optional(string, "Terraform managed.")
|
||||
enable_logging = optional(bool, false)
|
||||
healthy_threshold = optional(number)
|
||||
name = optional(string)
|
||||
timeout_sec = optional(number)
|
||||
unhealthy_threshold = optional(number)
|
||||
grpc = optional(object({
|
||||
|
||||
Reference in New Issue
Block a user