Fix linting

This commit is contained in:
Julio Castillo
2022-11-30 11:36:58 +01:00
parent 9aa1c49adf
commit ef4a4b02af
6 changed files with 23 additions and 27 deletions

View File

@@ -25,6 +25,7 @@ variable "network" {
}
variable "peer_gateway" {
description = "Configuration of the (external or GCP) peer gateway."
type = object({
external = optional(object({
redundancy_type = string
@@ -34,8 +35,8 @@ variable "peer_gateway" {
})
nullable = false
validation {
condition = var.peer_gateway.external != null || var.peer_gateway.gcp != null
error_message = "TODO"
condition = (var.peer_gateway.external != null) != (var.peer_gateway.gcp != null)
error_message = "Peer gateway configuration must define exactly one between `external` and `gcp`."
}
}
@@ -50,6 +51,7 @@ variable "region" {
}
variable "router_config" {
description = "Cloud Router configuration for the VPN. If you want to reuse an existing router, set create to false and use name to specify the desired router."
type = object({
create = optional(bool, true)
asn = number