-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathoutputs.tf
40 lines (32 loc) · 1.34 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
# ------------------------------------------------------------------------------
# OUTPUT CALCULATED VARIABLES (prefer full objects)
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# OUTPUT ALL RESOURCES AS FULL OBJECTS
# ------------------------------------------------------------------------------
output "instance" {
description = "SQL Database Instance"
value = try(google_sql_database_instance.instance[0], null)
}
output "databases" {
description = "All SQL Databases"
value = try(google_sql_database.database, null)
}
output "certs" {
description = "All SQL Certs"
value = try(google_sql_ssl_cert.client_cert, null)
}
output "users" {
description = "All SQL Users"
value = try(google_sql_user.users, null)
}
# ------------------------------------------------------------------------------
# OUTPUT ALL INPUT VARIABLES
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# OUTPUT MODULE CONFIGURATION
# ------------------------------------------------------------------------------
output "module_enabled" {
description = "Whether the module is enabled."
value = var.module_enabled
}