Add support for context to net-lb-int net-vpc-firewall and net-vpc module (#3419)

* net-lb-int

* net-vpc-firewall

* net-vpc

* net-vpc
This commit is contained in:
Ludovico Magnocavallo
2025-10-16 07:54:14 +02:00
committed by GitHub
parent ecdc248f3f
commit 7c920d7d35
25 changed files with 1044 additions and 221 deletions

View File

@@ -23,10 +23,23 @@ variable "auto_create_subnetworks" {
variable "context" {
description = "Context-specific interpolations."
type = object({
regions = optional(map(string), {})
addresses = optional(map(string), {})
cidr_ranges = optional(map(string), {})
condition_vars = optional(map(map(string)), {})
custom_roles = optional(map(string), {})
iam_principals = optional(map(string), {})
locations = optional(map(string), {})
networks = optional(map(string), {})
# legacy context
regions = optional(map(string), {})
project_ids = optional(map(string), {})
})
default = {}
nullable = false
validation {
condition = length(var.context.regions) == 0 || length(var.context.locations) == 0
error_message = "Only one of locations, regions can be used."
}
}
variable "create_googleapis_routes" {