-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathoutputs.tf
71 lines (58 loc) · 2.37 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
output "os_user_name" {
value = var.internal_user_database_enabled ? var.master_user_name : null
description = "Master username for OpenSearch"
sensitive = true
}
output "os_password" {
value = try(random_password.password[0].result, null)
description = "Master user password for OpenSearch"
sensitive = true
}
output "cognito_map" {
description = "cognito info"
value = var.cognito_enabled ? { "user_pool" = try(aws_cognito_user_pool.user_pool[0].id, null)
"identity_pool" = try(aws_cognito_identity_pool.identity_pool[0].id, null)
"auth_arn" = try(aws_iam_role.authenticated[0].arn, null)
"domain" = try("${aws_cognito_user_pool_domain.user_pool_domain[0].domain}.auth.${var.region}.amazoncognito.com", null)
} : null
}
output "user_pool_id" {
description = "Cognito user pool ID"
value = try(aws_cognito_user_pool.user_pool[0].id, null)
}
output "identity_pool_id" {
description = "Cognito identity pool ID"
value = try(aws_cognito_identity_pool.identity_pool[0].id, null)
}
output "arn" {
description = "ARN of the domain"
value = aws_opensearch_domain.opensearch.arn
}
output "domain_id" {
description = "Unique identifier for the domain"
value = aws_opensearch_domain.opensearch.domain_id
}
output "domain_name" {
description = "Name of the Elasticsearch domain"
value = aws_opensearch_domain.opensearch.domain_name
}
output "endpoint" {
description = "Domain-specific endpoint used to submit index, search, and data upload requests"
value = aws_opensearch_domain.opensearch.endpoint
}
output "dashboard_endpoint" {
description = "Domain-specific endpoint for Dashboard without https scheme"
value = aws_opensearch_domain.opensearch.dashboard_endpoint
}
output "tags_all" {
description = "Map of tags assigned to the resource, including those inherited from the provider"
value = aws_opensearch_domain.opensearch.tags_all
}
output "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 = try(aws_opensearch_domain.opensearch.vpc_options[0].availability_zones, null)
}
output "vpc_id" {
description = "If the domain was created inside a VPC, the ID of the VPC"
value = try(aws_opensearch_domain.opensearch.vpc_options[0].vpc_id, null)
}