objects output
This commit is contained in:
parent
2f3d29395f
commit
9a0f9f607f
|
@ -140,6 +140,7 @@ module "bucket" {
|
|||
| [id](outputs.tf#L28) | Fully qualified bucket id. | |
|
||||
| [name](outputs.tf#L37) | Bucket name. | |
|
||||
| [notification](outputs.tf#L46) | GCS Notification self link. | |
|
||||
| [topic](outputs.tf#L51) | Topic ID used by GCS. | |
|
||||
| [url](outputs.tf#L56) | Bucket URL. | |
|
||||
| [objects](outputs.tf#L51) | Objects in GCS bucket. | |
|
||||
| [topic](outputs.tf#L63) | Topic ID used by GCS. | |
|
||||
| [url](outputs.tf#L68) | Bucket URL. | |
|
||||
<!-- END TFDOC -->
|
||||
|
|
|
@ -48,6 +48,18 @@ output "notification" {
|
|||
value = local.notification ? google_storage_notification.notification[0].self_link : null
|
||||
}
|
||||
|
||||
output "objects" {
|
||||
description = "Objects in GCS bucket."
|
||||
value = { for k, v in google_storage_bucket_object.objects : k => {
|
||||
crc32c = v.crc32c
|
||||
md5hash = v.md5hash
|
||||
self_link = v.self_link
|
||||
output_name = v.output_name
|
||||
media_link = v.media_link
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output "topic" {
|
||||
description = "Topic ID used by GCS."
|
||||
value = local.notification ? google_pubsub_topic.topic[0].id : null
|
||||
|
|
Loading…
Reference in New Issue