Skip to content

Commit

Permalink
OCTOPUS-555: harden the routes
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <[email protected]>
  • Loading branch information
prb112 committed Nov 14, 2023
1 parent 7923b06 commit baf7379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ module "vpc_prepare" {
worker_3 = var.worker_3
create_custom_subnet = var.create_custom_subnet
skip_create_security_group = var.skip_create_security_group
skip_route_creation = var.skip_route_creation
}

### Prepares the VPC Support Machine
Expand Down
2 changes: 1 addition & 1 deletion modules/1_vpc_prepare/routes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
################################################################

resource "ibm_is_vpc_routing_table_route" "route_to_powervs" {
count = var.skip_route_creation ? 0 : 1
count = var.skip_route_creation ? 0 : 1
vpc = data.ibm_is_vpc.vpc.id
routing_table = data.ibm_is_vpc.vpc.default_routing_table
zone = var.vpc_create || var.create_custom_subnet ? ibm_is_subnet.subnet_worker_zone_1[0].zone : data.ibm_is_vpc.vpc.subnets[0].zone
Expand Down

0 comments on commit baf7379

Please sign in to comment.