small var conditional fix

This commit is contained in:
caiotavaresdito 2021-11-29 22:35:07 -05:00
parent da4337e5bc
commit 40c66f9fa9
1 changed files with 2 additions and 2 deletions

View File

@ -25,11 +25,11 @@ output "name" {
}
output "notification" {
description = "GCS Notification self link."
value = local.notification == true ? google_storage_notification.notification[0].self_link : null
value = local.notification ? google_storage_notification.notification[0].self_link : null
}
output "topic" {
description = "Topic ID used by GCS."
value = local.notification == true ? google_pubsub_topic.topic[0].id : null
value = local.notification ? google_pubsub_topic.topic[0].id : null
}
output "url" {
description = "Bucket URL."