Commit 703d4eb6 authored by Adrian Horrocks's avatar Adrian Horrocks

adding further ouputs and bug fixing

parent e4988391
variable environment {} variable environment {}
variable name {} variable name {}
variable nat_gateway_ips {}
variable private_dns_zone {} variable private_dns_zone {}
variable private_dns_address {} variable private_dns_address {}
variable public_dns_zone {} variable public_dns_zone {}
...@@ -92,6 +91,7 @@ resource "aws_route53_record" "public" { ...@@ -92,6 +91,7 @@ resource "aws_route53_record" "public" {
records = ["${aws_elasticsearch_domain.elasticsearch.endpoint}"] records = ["${aws_elasticsearch_domain.elasticsearch.endpoint}"]
} }
resource "aws_route53_record" "private" { resource "aws_route53_record" "private" {
zone_id = "${var.private_dns_zone}" zone_id = "${var.private_dns_zone}"
name = "${var.private_dns_address}" name = "${var.private_dns_address}"
...@@ -100,6 +100,15 @@ resource "aws_route53_record" "private" { ...@@ -100,6 +100,15 @@ resource "aws_route53_record" "private" {
records = ["${aws_elasticsearch_domain.elasticsearch.endpoint}"] records = ["${aws_elasticsearch_domain.elasticsearch.endpoint}"]
} }
output "endpoint" { output "endpoint" {
value = "${aws_elasticsearch_domain.elasticsearch.endpoint}" value = "${aws_elasticsearch_domain.elasticsearch.endpoint}"
} }
output "arn" {
value = "${aws_elasticsearch_domain.elasticsearch.arn}"
}
output "domain_id" {
value = "${aws_elasticsearch_domain.elasticsearch.domain_id}"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment