From d76ffa3f2f147042527d98333397355a387d6701 Mon Sep 17 00:00:00 2001 From: Jean-Benoit Paux <9682558+jbpaux@users.noreply.github.com> Date: Thu, 14 Jul 2022 00:37:02 +0200 Subject: [PATCH] feat: add name and url outputs on simple_bucket module (#175) --- modules/simple_bucket/README.md | 2 ++ modules/simple_bucket/outputs.tf | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/modules/simple_bucket/README.md b/modules/simple_bucket/README.md index a6c73c89..a17b0d54 100644 --- a/modules/simple_bucket/README.md +++ b/modules/simple_bucket/README.md @@ -60,6 +60,8 @@ Functional examples are included in the | Name | Description | |------|-------------| | bucket | The created storage bucket | +| name | Bucket name. | +| url | Bucket URL. | diff --git a/modules/simple_bucket/outputs.tf b/modules/simple_bucket/outputs.tf index 73d8dacc..6a9f5483 100644 --- a/modules/simple_bucket/outputs.tf +++ b/modules/simple_bucket/outputs.tf @@ -18,3 +18,13 @@ output "bucket" { description = "The created storage bucket" value = google_storage_bucket.bucket } + +output "name" { + description = "Bucket name." + value = google_storage_bucket.bucket.name +} + +output "url" { + description = "Bucket URL." + value = google_storage_bucket.bucket.url +}