mirror of https://github.com/OpenVidu/openvidu.git
openvidu-deployment: GCP - Removed more unnecesary var.zone
parent
1359ec77fe
commit
2806cbcf8b
|
|
@ -96,7 +96,6 @@ locals {
|
||||||
resource "google_compute_instance" "openvidu_server" {
|
resource "google_compute_instance" "openvidu_server" {
|
||||||
name = lower("${var.stackName}-vm-ce")
|
name = lower("${var.stackName}-vm-ce")
|
||||||
machine_type = var.instanceType
|
machine_type = var.instanceType
|
||||||
zone = var.zone
|
|
||||||
|
|
||||||
tags = [lower("${var.stackName}-vm-ce")]
|
tags = [lower("${var.stackName}-vm-ce")]
|
||||||
|
|
||||||
|
|
@ -117,7 +116,7 @@ resource "google_compute_instance" "openvidu_server" {
|
||||||
|
|
||||||
metadata = {
|
metadata = {
|
||||||
# metadata values are accessible from the instance
|
# 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
|
region = var.region
|
||||||
stackName = var.stackName
|
stackName = var.stackName
|
||||||
certificateType = var.certificateType
|
certificateType = var.certificateType
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,6 @@ variable "region" {
|
||||||
default = "europe-west1"
|
default = "europe-west1"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "zone" {
|
|
||||||
description = "GCP zone that some resources will use."
|
|
||||||
type = string
|
|
||||||
default = "europe-west1-b"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "stackName" {
|
variable "stackName" {
|
||||||
description = "Stack name for OpenVidu deployment."
|
description = "Stack name for OpenVidu deployment."
|
||||||
type = string
|
type = string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue