From 4bf03b8c6d3c739fd40568a7900f964f126efc71 Mon Sep 17 00:00:00 2001 From: joao-diasx Date: Mon, 9 Dec 2024 12:14:03 -0300 Subject: [PATCH] Fixing wrong variable create vpc --- instance.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instance.tf b/instance.tf index b38c9b3..94d5666 100644 --- a/instance.tf +++ b/instance.tf @@ -4,7 +4,7 @@ data "ibm_is_ssh_key" "ssh_key" { resource "ibm_is_instance" "openvpn_instance" { name = var.instance_name - vpc = var.create_vpc ? ibm_is_vpc.vpc[0].id : data.ibm_is_vpc.existing_vpc[0].id + vpc = var.vpc_create ? ibm_is_vpc.vpc[0].id : data.ibm_is_vpc.existing_vpc[0].id profile = var.instance_profile zone = var.zone_region image = data.ibm_is_image.linux_image.id