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 }