Skip to content

Commit 00087a1

Browse files
authored
Make elasticsearch name variable (#37)
1 parent 8b81c5b commit 00087a1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

aws/backing-services/elasticsearch.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
variable "ELASTICSEARCH_NAME" {
2+
type = "string"
3+
default = "elasticsearch"
4+
description = "Elasticsearch cluster name"
5+
}
6+
17
variable "ELASTICSEARCH_VERSION" {
28
type = "string"
39
default = "6.2"
@@ -45,7 +51,7 @@ module "elasticsearch" {
4551
source = "git::https://github.com/cloudposse/terraform-aws-elasticsearch.git?ref=tags/0.1.1"
4652
namespace = "${var.namespace}"
4753
stage = "${var.stage}"
48-
name = "elasticsearch"
54+
name = "${var.ELASTICSEARCH_NAME}"
4955
dns_zone_id = "${var.zone_id}"
5056
security_groups = ["${module.kops_metadata.nodes_security_group_id}"]
5157
vpc_id = "${module.vpc.vpc_id}"

0 commit comments

Comments
 (0)