Skip to content

Commit

Permalink
fix variables in right file
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 27, 2023
1 parent c5afb57 commit 8384423
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
30 changes: 15 additions & 15 deletions examples/full-setup-tf-upgrade/tgw/variables.vpc-transit-gateway.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
variable "tgw_environment" {
description = "Transit Gateway environment route table (services, dev, test, stage, prod, cre)"
type = string
default = null

validation {
condition = contains(["services", "dev", "test", "stage", "prod", "cre"], var.tgw_environment)
error_message = "The tgw_environment must contain one of the legal values: services, dev, test, stage, prod, cre"
}
}
## variable "tgw_environment" {
## description = "Transit Gateway environment route table (services, dev, test, stage, prod, cre)"
## type = string
## default = null
##
## validation {
## condition = contains(["services", "dev", "test", "stage", "prod", "cre"], var.tgw_environment)
## error_message = "The tgw_environment must contain one of the legal values: services, dev, test, stage, prod, cre"
## }
## }

variable "tgw_environment_exists" {
description = "Transit Gateway environment already setup in another VPC (say, for multiple test enviroments but diff vpc like test,ite,qa)"
Expand Down Expand Up @@ -52,11 +52,11 @@ variable "tgw_vpn_routing_prefix_list" {
default = ""
}

variable "tgw_enable_vpn_routing" {
description = "Enable VPN routing over Transit Gateway"
type = bool
default = false
}
## variable "tgw_enable_vpn_routing" {
## description = "Enable VPN routing over Transit Gateway"
## type = bool
## default = false
## }

variable "tgw_enable_vpn" {
description = "Enable AWS VPN Configuration on the Transit Gateway (default: false)"
Expand Down
5 changes: 5 additions & 0 deletions examples/full-setup-tf-upgrade/variables.vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ variable "tgw_environment" {
description = "Transit Gateway environment route table (services, dev, test, stage, prod, cre)"
type = string
default = null

validation {
condition = var.tgw_environment == null || contains(["services", "dev", "test", "stage", "prod", "cre"], var.tgw_environment)
error_message = "The tgw_environment must contain one of the legal values: services, dev, test, stage, prod, cre"
}
}

variable "tgw_enable_vpn_routing" {
Expand Down

0 comments on commit 8384423

Please sign in to comment.