Skip to content

Commit

Permalink
permanent fix
Browse files Browse the repository at this point in the history
  • Loading branch information
drewmullen committed May 26, 2022
1 parent fce71f9 commit a13c4a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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) : true
}

# TODO: remove once `route_to_transit_gateway` can accept more than 1 argument
validation {
Expand Down

0 comments on commit a13c4a1

Please sign in to comment.