-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
29 lines (24 loc) · 968 Bytes
/
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 "opensearch_domain_arn" {
description = "Return ARN of the OpenSearch cluster domain."
value = aws_elasticsearch_domain.opensearch[*].arn
}
output "opensearch_domain_id" {
description = "The domain id of the OpenSearch cluster."
value = aws_elasticsearch_domain.opensearch[*].id
}
output "cluster_name" {
description = "The name of the OpenSearch cluster."
value = aws_elasticsearch_domain.opensearch[*].domain_name
}
output "cluster_endpoint" {
description = "The endpoint URL of the OpenSearch cluster."
value = aws_elasticsearch_domain.opensearch[*].endpoint
}
output "cluster_version" {
description = "The version of the OpenSearch cluster."
value = [for i in aws_elasticsearch_domain.opensearch[*] : replace(i.elasticsearch_version, "OpenSearch_", "")]
}
output "kibana_endpoint" {
description = "The endpoint URL of Kibana."
value = aws_elasticsearch_domain.opensearch[*].kibana_endpoint
}