Skip to content

Commit

Permalink
Merge pull request #17 from SkYNewZ/master
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
aaron-lane authored Dec 18, 2019
2 parents eed95cd + 8f410dd commit 7571296
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 7571296

Please sign in to comment.