Skip to content

Commit 074a88b

Browse files
authored
Fixed issue in resource paths
1 parent eff4b93 commit 074a88b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/elasticsearch/ec2.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ resource "aws_security_group" "elasticsearch_sg" {
4141
}
4242

4343
data "template_file" "elasticsearch_master_cloudconfig" {
44-
template = "${file("${path.module}/../resources/userdata.tpl")}"
44+
template = "${file("${path.module}/resources/userdata.tpl")}"
4545
vars {
46-
configuration_script = "${base64encode(file("${path.module}/resources/install-unix-tools.sh"))}"
46+
configuration_script = "${base64encode(file("${path.module}/../resources/install-unix-tools.sh"))}"
4747
cluster_name = "${var.ecs_cluster_name}"
4848
cluster_role = "elasticsearch-master"
4949
host_name = "${lower(var.verbose_name)}-elasticsearch"
@@ -53,9 +53,9 @@ data "template_file" "elasticsearch_master_cloudconfig" {
5353
}
5454

5555
data "template_file" "elasticsearch_data_cloudconfig" {
56-
template = "${file("${path.module}/../resources/userdata.tpl")}"
56+
template = "${file("${path.module}/resources/userdata.tpl")}"
5757
vars {
58-
configuration_script = "${base64encode(file("${path.module}/resources/install-unix-tools.sh"))}"
58+
configuration_script = "${base64encode(file("${path.module}/../resources/install-unix-tools.sh"))}"
5959
cluster_name = "${var.ecs_cluster_name}"
6060
cluster_role = "elasticsearch-data"
6161
host_name = "${lower(var.verbose_name)}-elasticsearch"
@@ -160,4 +160,4 @@ resource "aws_route53_record" "elasticsearch_data_node_dns_records" {
160160
type = "A"
161161
ttl = "60"
162162
records = ["${element(aws_instance.elasticsearch_data_instance.*.private_ip, 0)}"]
163-
}
163+
}

0 commit comments

Comments
 (0)