Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 12, 2022
1 parent 1183a73 commit 04ca2c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vpc-transit-gateway-association/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variable "transit_gateway_environment" {
type = string

validation {
condition = contains(local._defaults["transit-gateway-environments"], var.transit_gateway_environment)
condition = contains(["services", "dev", "test", "stage", "prod", "cre"], var.transit_gateway_environment)
error_message = "transit_gateway_environment value must be one of the valid VRF selections"
}
}
Expand All @@ -23,3 +23,5 @@ variable "route_table_label" {
type = string
default = "attachment"
}


0 comments on commit 04ca2c5

Please sign in to comment.