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