forked from lgallard/terraform-aws-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
29 lines (24 loc) · 1.28 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
output "arn" {
description = "Amazon Resource Name (ARN) of the domain"
value = join("", aws_elasticsearch_domain.es_domain.*.arn)
}
output "domain_id" {
description = "Unique identifier for the domain"
value = join("", aws_elasticsearch_domain.es_domain.*.domain_id)
}
output "endpoint" {
description = "Domain-specific endpoint used to submit index, search, and data upload requests"
value = join("", aws_elasticsearch_domain.es_domain.*.endpoint)
}
output "kibana_endpoint" {
description = "Domain-specific endpoint for kibana without https scheme"
value = join("", aws_elasticsearch_domain.es_domain.*.kibana_endpoint)
}
output "vpc_options_availability_zones" {
description = "If the domain was created inside a VPC, the names of the availability zones the configured subnet_ids were created inside"
value = var.enabled ? (length(aws_elasticsearch_domain.es_domain[0].vpc_options) > 0 ? aws_elasticsearch_domain.es_domain[0].vpc_options.0.availability_zones : []) : []
}
output "vpc_options_vpc_id" {
description = "If the domain was created inside a VPC, the ID of the VPC"
value = var.enabled ? length(aws_elasticsearch_domain.es_domain[0].vpc_options) > 0 ? aws_elasticsearch_domain.es_domain[0].vpc_options.0.vpc_id : null : null
}