diff --git a/manifests/elastic/main.tf b/manifests/elastic/main.tf index 69c80cc5b8c367e30475ae28a89652094331f40d..80c25abf2a60bcdbfa62113759563ce148ce11fb 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 b81948050ef2c57d2e0ee19c6b469b4cdef9fe1c..076bbdbc6b764731644630f6b296808d7bfaad56 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