Skip to content

Commit a13c4a1

Browse files
committed
permanent fix
1 parent fce71f9 commit a13c4a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ EOF
192192
condition = alltrue([for _, v in var.subnets : !can(regex("/", try(v.name_prefix, "")))])
193193
}
194194

195-
# validation {
196-
# error_message = "Private subnet cannot set `route_to_transit_gateway` = \"0.0.0.0/.\" if `route_to_nat` = true."
197-
# 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
198-
# }
195+
validation {
196+
error_message = "Private subnet cannot set `route_to_transit_gateway` = \"0.0.0.0/.\" if `route_to_nat` = true."
197+
condition = try(var.subnets.private.route_to_nat, false) ? try(var.subnets.private.route_to_transit_gateway[0] != "0.0.0.0/0", true) : true
198+
}
199199

200200
# TODO: remove once `route_to_transit_gateway` can accept more than 1 argument
201201
validation {

0 commit comments

Comments
 (0)