From 402b56301680bb7c567927ddbd74e37285053902 Mon Sep 17 00:00:00 2001 From: Ian Gable Date: Tue, 21 Apr 2020 11:23:59 -0700 Subject: [PATCH] Fix #14 invalid kibana_hostname (#47) Fix #14 by setting the kibana_hostname equal to the ES endpoint rather then then aws_elasticsearch_domain.kibana_endpoint. aws_elasticsearch_domain.kibana_endpoint is the complete URL to the endpoint including the path /_plugin/kibana/ which makes for an invalid CNAME. --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 971137a..f5935a1 100644 --- a/main.tf +++ b/main.tf @@ -235,5 +235,5 @@ module "kibana_hostname" { name = var.kibana_subdomain_name ttl = 60 zone_id = var.dns_zone_id - records = [join("", aws_elasticsearch_domain.default.*.kibana_endpoint)] + records = [join("", aws_elasticsearch_domain.default.*.endpoint)] }