From db89a5c248c3bb621e0ee60a4714d20fe3fcb49e Mon Sep 17 00:00:00 2001 From: Kunpei Sakai Date: Sat, 9 Mar 2019 01:03:11 +0900 Subject: [PATCH] add uri as an output resource --- outputs.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/outputs.tf b/outputs.tf index 05aaa2b..649aea4 100644 --- a/outputs.tf +++ b/outputs.tf @@ -24,6 +24,11 @@ output "id" { description = "The ID of the Pub/Sub topic" } +output "uri" { + value = "pubsub.googleapis.com/${google_pubsub_topic.topic.id}" + description = "The URI of the Pub/Sub topic" +} + output "subscription_names" { value = "${concat( google_pubsub_subscription.push_subscriptions.*.name,