Skip to content

Commit 77acd09

Browse files
authored
Merge pull request #48 from aws-ia/b-validation-error
Fix for validation bug
2 parents 2000bb1 + a13c4a1 commit 77acd09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ EOF
194194

195195
validation {
196196
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
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
198198
}
199199

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

0 commit comments

Comments
 (0)