-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoutputs.tf
More file actions
199 lines (167 loc) · 6.19 KB
/
Copy pathoutputs.tf
File metadata and controls
199 lines (167 loc) · 6.19 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# ------------------------------------------------------------------------------
# Outputs
# ------------------------------------------------------------------------------
output "database_cluster_id" {
value = digitalocean_database_cluster.cluster[*].id
description = "The id of the database cluster"
}
output "database_cluster_urn" {
value = digitalocean_database_cluster.cluster[*].urn
description = "The uniform resource name of the database cluster"
}
output "database_cluster_host" {
value = digitalocean_database_cluster.cluster[*].host
description = "The hostname of the database cluster"
}
output "database_cluster_private_host" {
value = digitalocean_database_cluster.cluster[*].private_host
description = "Same as host, but only accessible from resources within the account and in the same region"
}
output "database_cluster_port" {
value = digitalocean_database_cluster.cluster[*].port
description = "Network port that the database cluster is listening on"
}
output "database_cluster_uri" {
value = digitalocean_database_cluster.cluster[*].uri
sensitive = true
description = "The full URI for connecting to the database cluster"
}
output "database_cluster_default_database" {
value = digitalocean_database_cluster.cluster[*].database
description = "Name of the cluster's default database"
}
output "database_cluster_default_user" {
value = digitalocean_database_cluster.cluster[*].user
description = "Username for the cluster's default user"
}
output "database_cluster_default_password" {
value = digitalocean_database_cluster.cluster[*].password
sensitive = true
description = "Password for the cluster's default user"
}
output "connection_pool_id" {
value = {
for k, pool in digitalocean_database_connection_pool.connection_pool : k => pool.id
}
description = "The ID of the database connection pool"
}
output "connection_pool_host" {
value = {
for k, pool in digitalocean_database_connection_pool.connection_pool : k => pool.host
}
description = "The hostname used to connect to the database connection pool"
}
output "connection_pool_private_host" {
value = {
for k, pool in digitalocean_database_connection_pool.connection_pool : k => pool.private_host
}
description = "Same as pool host, but only accessible from resources within the account and in the same region"
}
output "connection_pool_port" {
value = {
for k, pool in digitalocean_database_connection_pool.connection_pool : k => pool.port
}
description = "Network port that the database connection pool is listening on"
}
output "connection_pool_uri" {
value = {
for k, pool in digitalocean_database_connection_pool.connection_pool : k => pool.uri
}
sensitive = true
description = "The full URI for connecting to the database connection pool"
}
output "connection_pool_private_uri" {
value = {
for k, pool in digitalocean_database_connection_pool.connection_pool : k => pool.private_uri
}
sensitive = true
description = "Same as pool uri, but only accessible from resources within the account and in the same region"
}
output "connection_pool_password" {
value = {
for k, pool in digitalocean_database_connection_pool.connection_pool : k => pool.password
}
sensitive = true
description = "Password for the connection pool's user"
}
output "db_name" {
value = [
for db in digitalocean_database_db.database : db.name
]
description = "The name for the database"
}
output "user_role" {
value = {
for k, user in digitalocean_database_user.user : k => user.role
}
description = "Role for the database user"
}
output "user_password" {
value = {
for k, user in digitalocean_database_user.user : k => user.password
}
sensitive = true
description = "Password for the database user"
}
output "database_firewall_id" {
value = digitalocean_database_firewall.firewall[*].id
description = "A unique identifier for the firewall"
}
output "database_firewall_rule" {
value = [
for r in digitalocean_database_firewall.firewall[*].rule : r
]
description = "A map with rule's uuid, type, value and created_at params"
}
output "database_replica_firewall_rule" {
value = [
for r in digitalocean_database_firewall.replica-firewall[*].rule : r
]
description = "A map with rule's uuid, type, value and created_at params"
}
output "replica_id" {
value = digitalocean_database_replica.replica-example[*].id
description = "The ID of the database replica created by Terraform."
}
output "replica_host_name" {
value = digitalocean_database_replica.replica-example[*].host
description = "The ID of the database replica created by Terraform."
}
output "replica_cluster_private_host" {
value = digitalocean_database_replica.replica-example[*].private_host
description = "Same as host, but only accessible from resources within the account and in the same region."
}
output "replica_cluster_port" {
value = digitalocean_database_replica.replica-example[*].port
description = "Network port that the database replica is listening on."
}
output "replica_cluster_uri" {
value = digitalocean_database_replica.replica-example[*].uri
sensitive = true
description = "The full URI for connecting to the database replica."
}
output "replica_cluster_default_database" {
value = digitalocean_database_replica.replica-example[*].database
description = "Name of the replica's default database."
}
output "replica_cluster_default_user" {
value = digitalocean_database_replica.replica-example[*].user
description = "Username for the replica cluster's default user"
}
output "replica_cluster_default_password" {
value = digitalocean_database_replica.replica-example[*].password
sensitive = true
description = "Password for the replica cluster's default user"
}
output "database_logsink_opensearch_id" {
value = {
for k, sink in digitalocean_database_logsink_opensearch.logsink_opensearch : k => sink.id
}
description = "The IDs of OpenSearch logsinks"
}
output "database_logsink_rsyslog_id" {
value = {
for k, sink in digitalocean_database_logsink_rsyslog.logsink_rsyslog : k => sink.id
}
description = "The IDs of rsyslog logsinks"
}