From 2806cbcf8b0d42dba887f5b9abf61433f415d6ad Mon Sep 17 00:00:00 2001 From: Piwccle Date: Wed, 10 Dec 2025 18:29:26 +0100 Subject: [PATCH] openvidu-deployment: GCP - Removed more unnecesary var.zone --- .../community/singlenode/gcp/tf-gpc-openvidu-singlenode.tf | 3 +-- openvidu-deployment/community/singlenode/gcp/variables.tf | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) 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