From c7f73e36eb4ffa9bb47922a753af8606b50631b8 Mon Sep 17 00:00:00 2001 From: Piwccle Date: Wed, 10 Dec 2025 18:42:57 +0100 Subject: [PATCH] openvidu-deployment: GCP - Added zone dependency becasue its required --- .../community/singlenode/gcp/tf-gpc-openvidu-singlenode.tf | 1 + openvidu-deployment/community/singlenode/gcp/variables.tf | 6 ++++++ openvidu-deployment/community/singlenode/gcp/versions.tf | 1 + 3 files changed, 8 insertions(+) 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 6d471f3c0..0cf6fcd51 100644 --- a/openvidu-deployment/community/singlenode/gcp/tf-gpc-openvidu-singlenode.tf +++ b/openvidu-deployment/community/singlenode/gcp/tf-gpc-openvidu-singlenode.tf @@ -96,6 +96,7 @@ 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")] diff --git a/openvidu-deployment/community/singlenode/gcp/variables.tf b/openvidu-deployment/community/singlenode/gcp/variables.tf index e371bf1d1..a5d830e15 100644 --- a/openvidu-deployment/community/singlenode/gcp/variables.tf +++ b/openvidu-deployment/community/singlenode/gcp/variables.tf @@ -12,6 +12,12 @@ 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 diff --git a/openvidu-deployment/community/singlenode/gcp/versions.tf b/openvidu-deployment/community/singlenode/gcp/versions.tf index 408f0b29d..0eb8bf7d6 100644 --- a/openvidu-deployment/community/singlenode/gcp/versions.tf +++ b/openvidu-deployment/community/singlenode/gcp/versions.tf @@ -15,5 +15,6 @@ terraform { provider "google" { project = var.projectId region = var.region + zone = var.zone }