diff --git a/openvidu-deployment/community/singlenode/gcp/tf-gpc-openvidu-singlenode.tf b/openvidu-deployment/community/singlenode/gcp/tf-gpc-openvidu-singlenode.tf index ebedbcb50..6d471f3c0 100644 --- a/openvidu-deployment/community/singlenode/gcp/tf-gpc-openvidu-singlenode.tf +++ b/openvidu-deployment/community/singlenode/gcp/tf-gpc-openvidu-singlenode.tf @@ -96,7 +96,6 @@ locals { resource "google_compute_instance" "openvidu_server" { name = lower("${var.stackName}-vm-ce") machine_type = var.instanceType - zone = var.zone tags = [lower("${var.stackName}-vm-ce")] @@ -117,7 +116,7 @@ resource "google_compute_instance" "openvidu_server" { metadata = { # metadata values are accessible from the instance - publicIpAddress = google_compute_address.public_ip_address[0].address + publicIpAddress = coalesce(var.publicIpAddress, google_compute_address.public_ip_address[0].address) region = var.region stackName = var.stackName certificateType = var.certificateType diff --git a/openvidu-deployment/community/singlenode/gcp/variables.tf b/openvidu-deployment/community/singlenode/gcp/variables.tf index a5d830e15..e371bf1d1 100644 --- a/openvidu-deployment/community/singlenode/gcp/variables.tf +++ b/openvidu-deployment/community/singlenode/gcp/variables.tf @@ -12,12 +12,6 @@ variable "region" { default = "europe-west1" } -variable "zone" { - description = "GCP zone that some resources will use." - type = string - default = "europe-west1-b" -} - variable "stackName" { description = "Stack name for OpenVidu deployment." type = string