-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
outputs.tf
60 lines (49 loc) · 1.77 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
output "master_username" {
value = join("", aws_docdb_cluster.default[*].master_username)
description = "Username for the master DB user"
}
output "master_password" {
value = join("", aws_docdb_cluster.default[*].master_password)
description = "Password for the master DB user"
sensitive = true
}
output "cluster_name" {
value = join("", aws_docdb_cluster.default[*].cluster_identifier)
description = "Cluster Identifier"
}
output "arn" {
value = join("", aws_docdb_cluster.default[*].arn)
description = "Amazon Resource Name (ARN) of the cluster"
}
output "endpoint" {
value = join("", aws_docdb_cluster.default[*].endpoint)
description = "Endpoint of the DocumentDB cluster"
}
output "reader_endpoint" {
value = join("", aws_docdb_cluster.default[*].reader_endpoint)
description = "A read-only endpoint of the DocumentDB cluster, automatically load-balanced across replicas"
}
output "cluster_members" {
value = flatten(aws_docdb_cluster.default[*].cluster_members)
description = "List of DocumentDB Instances that are a part of this cluster"
}
output "master_host" {
value = module.dns_master.hostname
description = "DB master hostname"
}
output "replicas_host" {
value = module.dns_replicas.hostname
description = "DB replicas hostname"
}
output "security_group_id" {
description = "ID of the DocumentDB cluster Security Group"
value = join("", aws_security_group.default[*].id)
}
output "security_group_arn" {
description = "ARN of the DocumentDB cluster Security Group"
value = join("", aws_security_group.default[*].arn)
}
output "security_group_name" {
description = "Name of the DocumentDB cluster Security Group"
value = join("", aws_security_group.default[*].name)
}