Skip to content

Commit 60de9bd

Browse files
authored
elasticsearch_subdomain_name variable added (#45)
1 parent c7d3a49 commit 60de9bd

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ Available targets:
159159
| ebs_iops | The baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the Provisioned IOPS EBS volume type | string | `0` | no |
160160
| ebs_volume_size | Optionally use EBS volumes for data storage by specifying volume size in GB | string | `0` | no |
161161
| ebs_volume_type | Storage type of EBS volumes | string | `gp2` | no |
162+
| elasticsearch_subdomain_name | The name of the subdomain for Elasticsearch endpoint in the DNS zone (_e.g._ `elasticsearch`). If empty then module name will be used. | string | `` | no |
162163
| elasticsearch_version | Version of Elasticsearch to deploy | string | `6.5` | no |
163164
| enabled | Set to false to prevent the module from creating any resources | string | `true` | no |
164165
| encrypt_at_rest_enabled | Whether to enable encryption at rest | string | `true` | no |
@@ -353,7 +354,6 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
353354
[sarkis_homepage]: https://github.com/sarkis
354355
[sarkis_avatar]: https://img.cloudposse.com/150x150/https://github.com/sarkis.png
355356

356-
357357
[![README Footer][readme_footer_img]][readme_footer_link]
358358
[![Beacon][beacon]][website]
359359

docs/terraform.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
| ebs_iops | The baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the Provisioned IOPS EBS volume type | string | `0` | no |
1717
| ebs_volume_size | Optionally use EBS volumes for data storage by specifying volume size in GB | string | `0` | no |
1818
| ebs_volume_type | Storage type of EBS volumes | string | `gp2` | no |
19+
| elasticsearch_subdomain_name | The name of the subdomain for Elasticsearch endpoint in the DNS zone (_e.g._ `elasticsearch`). If empty then module name will be used. | string | `` | no |
1920
| elasticsearch_version | Version of Elasticsearch to deploy | string | `6.5` | no |
2021
| enabled | Set to false to prevent the module from creating any resources | string | `true` | no |
2122
| encrypt_at_rest_enabled | Whether to enable encryption at rest | string | `true` | no |

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ module "domain_hostname" {
198198
enabled = "${var.enabled == "true" && length(var.dns_zone_id) > 0 ? "true" : "false"}"
199199
namespace = "${var.namespace}"
200200
stage = "${var.stage}"
201-
name = "${var.name}"
201+
name = "${var.elasticsearch_subdomain_name == "" ? var.name : var.elasticsearch_subdomain_name}"
202202
ttl = 60
203203
zone_id = "${var.dns_zone_id}"
204204
records = ["${aws_elasticsearch_domain.default.*.endpoint}"]

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ variable "kibana_subdomain_name" {
204204
description = "The name of the subdomain for Kibana in the DNS zone (_e.g._ `kibana`, `ui`, `ui-es`, `search-ui`, `kibana.elasticsearch`)"
205205
}
206206

207+
variable "elasticsearch_subdomain_name" {
208+
type = "string"
209+
default = ""
210+
description = "The name of the subdomain for Elasticsearch endpoint in the DNS zone (_e.g._ `elasticsearch`). If empty then module name will be used."
211+
}
212+
207213
variable "create_iam_service_linked_role" {
208214
type = "string"
209215
default = "true"

0 commit comments

Comments
 (0)