Skip to content

Commit

Permalink
Merge pull request #28 from OpenVPN/feature/terraform_code
Browse files Browse the repository at this point in the history
Fixing wrong variable create vpc
  • Loading branch information
joao-diasx authored Dec 10, 2024
2 parents 6c5a02d + 4bf03b8 commit 3fecb16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3fecb16

Please sign in to comment.