forked from lgallard/terraform-aws-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
40 lines (33 loc) · 1.5 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
30
31
32
33
34
35
36
37
38
39
40
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 "master_username" {
description = "Master username"
value = local.master_user_name
}
output "master_password" {
description = "Master password"
value = local.master_user_password
sensitive = true
}
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
}