Files
gcp-simple-lz/modules/network/variables.tf
T
2025-03-30 11:31:28 +02:00

21 lines
471 B
Terraform

variable "name" {
description = "The name of the network."
type = string
}
# A Cloud NAT will be created in the same region as the first subnet.
variable "subnets" {
description = "A list of subnets with names and CIDRs."
type = list(object({
name = string
cidr = string
region = string
}))
validation {
condition = var.subnets[0].region != null
error_message = "The region for the first subnet must be specified."
}
}