-
Notifications
You must be signed in to change notification settings - Fork 1
/
output.tf
32 lines (26 loc) · 1.26 KB
/
output.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
# ------------------------------------------------------------------------------
# OUTPUT CALCULATED VARIABLES (prefer full objects)
# ------------------------------------------------------------------------------
# remap iam to reduce one level of access (iam[]. instead of iam[].iam.)
output "iam" {
description = "The iam resource objects that define the access to the secret"
value = { for key, iam in module.iam : key => iam.iam }
}
# ------------------------------------------------------------------------------
# OUTPUT ALL RESOURCES AS FULL OBJECTS
# ------------------------------------------------------------------------------
output "service" {
description = "All `google_cloud_run_service` resource attributes."
value = try(google_cloud_run_service.service[0], null)
}
output "domain_mapping" {
description = "All `google_cloud_run_domain_mapping` resource attributes."
value = try(google_cloud_run_domain_mapping.domain_mapping[0], null)
}
# ------------------------------------------------------------------------------
# OUTPUT MODULE CONFIGURATION
# ------------------------------------------------------------------------------
output "module_enabled" {
description = "Whether the module is enabled."
value = var.module_enabled
}