From fce71f90d06af3c580306cde58c79066c95d7225 Mon Sep 17 00:00:00 2001 From: drewmullen Date: Thu, 26 May 2022 09:26:08 -0400 Subject: [PATCH] temporary fix for validation bug --- variables.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/variables.tf b/variables.tf index a967f51..064927e 100644 --- a/variables.tf +++ b/variables.tf @@ -192,10 +192,10 @@ EOF condition = alltrue([for _, v in var.subnets : !can(regex("/", try(v.name_prefix, "")))]) } - validation { - error_message = "Private subnet cannot set `route_to_transit_gateway` = \"0.0.0.0/.\" if `route_to_nat` = true." - condition = try(var.subnets.private.route_to_nat, false) ? try(var.subnets.private.route_to_transit_gateway[0] != "0.0.0.0/0", true) : null - } + # validation { + # error_message = "Private subnet cannot set `route_to_transit_gateway` = \"0.0.0.0/.\" if `route_to_nat` = true." + # condition = try(var.subnets.private.route_to_nat, false) ? try(var.subnets.private.route_to_transit_gateway[0] != "0.0.0.0/0", true) : null + # } # TODO: remove once `route_to_transit_gateway` can accept more than 1 argument validation {