forked from mineiros-io/terraform-google-storage-bucket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
23 lines (19 loc) · 1.12 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
# ----------------------------------------------------------------------------------------------------------------------
# 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 access to the GCS bucket."
value = { for key, iam in module.iam : key => iam.iam }
}
# ----------------------------------------------------------------------------------------------------------------------
# OUTPUT ALL RESOURCES AS FULL OBJECTS
# ----------------------------------------------------------------------------------------------------------------------
output "bucket" {
description = "All attributes of the created `google_storage_bucket` resource."
value = one(google_storage_bucket.bucket)
}
output "policy_binding" {
description = "All attributes of the created policy_bindings mineiros-io/storage-bucket-iam/google module."
value = module.policy_bindings
}