From 0a28cab31f804074317249b954cc8c4fc0d216ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20B=C3=A9jean?= <nicolas@bejean.fr> Date: Sun, 12 Dec 2021 16:43:34 +0100 Subject: [PATCH] Change Elastic cluster name --- manifests/elastic/main.tf | 2 +- manifests/elastic/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/manifests/elastic/main.tf b/manifests/elastic/main.tf index 69c80cc..80c25ab 100644 --- a/manifests/elastic/main.tf +++ b/manifests/elastic/main.tf @@ -20,7 +20,7 @@ data "ec_stack" "stack" { } resource "ec_deployment" "elasticsearch_cluster" { - name = "mon-cluster" + name = var.cluster_name region = data.ec_stack.stack.region version = data.ec_stack.stack.version_regex deployment_template_id = "gcp-storage-optimized" diff --git a/manifests/elastic/variables.tf b/manifests/elastic/variables.tf index b819480..076bbdb 100644 --- a/manifests/elastic/variables.tf +++ b/manifests/elastic/variables.tf @@ -6,3 +6,9 @@ variable "region" { type = string default = "gcp-europe-west1" } + +### Cluster +variable "cluster_name" { + type = string + default = "elastic-for-gke-magento" +} \ No newline at end of file -- GitLab