This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user