generated from opsd-io/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
57 lines (47 loc) · 1.76 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
output "main_host_id" {
description = "The ID of the database cluster."
value = digitalocean_database_cluster.main.id
}
output "main_host" {
description = "Database cluster's hostname."
value = digitalocean_database_cluster.main.host
}
output "main_private_host" {
description = "Same as host, but only accessible from resources within the account and in the same region."
value = digitalocean_database_cluster.main.private_host
}
output "main_port" {
description = "Network port that the database cluster is listening on."
value = digitalocean_database_cluster.main.port
}
output "main_uri" {
description = "The full URI for connecting to the database cluster."
sensitive = true
value = digitalocean_database_cluster.main.uri
}
output "main_private_uri" {
description = "Same as uri, but only accessible from resources within the account and in the same region."
sensitive = true
value = digitalocean_database_cluster.main.private_uri
}
output "main_default_database" {
description = "Name of the cluster's default database."
value = digitalocean_database_cluster.main.database
}
output "main_default_user" {
description = "Username for the cluster's default user."
value = digitalocean_database_cluster.main.user
}
output "main_default_user_password" {
description = "Password for the cluster's default user."
sensitive = true
value = digitalocean_database_cluster.main.password
}
output "firewall_id" {
description = "A unique identifier for the firewall."
value = digitalocean_database_firewall.main.id
}
output "user_ids" {
description = "A unique identifier for database users."
value = [for id in var.database_users : digitalocean_database_user.main[id].id]
}