Working Landing Zone.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user