From baf7379686d9a25585a2c6ebaa92c836ef4e2b6d Mon Sep 17 00:00:00 2001 From: Paul Bastide Date: Tue, 14 Nov 2023 16:22:16 -0500 Subject: [PATCH] OCTOPUS-555: harden the routes Signed-off-by: Paul Bastide --- main.tf | 1 + modules/1_vpc_prepare/routes.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 89fb1a7..5934e2b 100644 --- a/main.tf +++ b/main.tf @@ -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 diff --git a/modules/1_vpc_prepare/routes.tf b/modules/1_vpc_prepare/routes.tf index 0cdfbd5..38a7514 100644 --- a/modules/1_vpc_prepare/routes.tf +++ b/modules/1_vpc_prepare/routes.tf @@ -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