Skip to content

Commit

Permalink
Fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
SkYNewZ committed Dec 18, 2019
1 parent eed95cd commit 8f410dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
*/

output "topic" {
value = google_pubsub_topic.topic.0.name
value = length(google_pubsub_topic.topic) > 0 ? google_pubsub_topic.topic.0.name : ""
description = "The name of the Pub/Sub topic"
}

output "topic_labels" {
value = google_pubsub_topic.topic.0.labels
value = length(google_pubsub_topic.topic) > 0 ? google_pubsub_topic.topic.0.labels : {}
description = "Labels assigned to the Pub/Sub topic"
}

output "id" {
value = google_pubsub_topic.topic.0.id
value = length(google_pubsub_topic.topic) > 0 ? google_pubsub_topic.topic.0.id : ""
description = "The ID of the Pub/Sub topic"
}

output "uri" {
value = "pubsub.googleapis.com/${google_pubsub_topic.topic.0.id}"
value = length(google_pubsub_topic.topic) > 0 ? "pubsub.googleapis.com/${google_pubsub_topic.topic.0.id}" : ""
description = "The URI of the Pub/Sub topic"
}

Expand Down

0 comments on commit 8f410dd

Please sign in to comment.