[#576] net-vpc - Add the ability to export/import custom routes throu… (#577)

This commit is contained in:
Luca Prete
2022-03-11 14:40:44 +01:00
committed by GitHub
parent 756bd17707
commit 7c3d9beced
13 changed files with 174 additions and 53 deletions

View File

@@ -108,17 +108,16 @@ variable "project_id" {
type = string
}
variable "psa_ranges" {
description = "CIDR ranges used for Google services that support Private Service Networking."
type = map(string)
default = null
validation {
condition = alltrue([
for k, v in(var.psa_ranges == null ? {} : var.psa_ranges) :
can(cidrnetmask(v))
])
error_message = "Specify valid RFC1918 CIDR ranges for Private Service Networking."
}
variable "psa_config" {
description = "The Private Service Access configuration."
type = map(object({
ranges = list(string) # CIDRs in the format x.x.x.x/yy
routes = object({
export = bool
import = bool
})
}))
default = null
}
variable "routes" {