Skip to content

Commit

Permalink
fix: uncomment the transit gateway added skip transit_gateway option
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <[email protected]>
  • Loading branch information
prb112 committed Oct 23, 2023
1 parent b0d99c7 commit a1a3439
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module "vpc_prepare" {
}

module "transit_gateway" {
count = var.skip_transit_gateway_create ? 0 : 1
providers = {
ibm = ibm.vpc
}
Expand All @@ -87,8 +88,7 @@ module "support" {
providers = {
ibm = ibm.powervs
}
depends_on = [module.vpc_prepare]
#depends_on = [module.transit_gateway]
depends_on = [module.transit_gateway]
source = "./modules/4_pvs_support"

private_key_file = var.private_key_file
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ variable "create_custom_subnet" {
default = false
}

variable "skip_transit_gateway_create" {
type = bool
description = "skips the creation of the transit gateway"
default = false
}

################################################################
# PowerVS Network - Networking
################################################################
Expand Down

0 comments on commit a1a3439

Please sign in to comment.