From 5afb9d8f1a24844a55a3bbc2ac3341d812aa571b Mon Sep 17 00:00:00 2001 From: Umair Idris Date: Sat, 22 Feb 2020 21:10:31 +0000 Subject: [PATCH 1/2] add outputs for simple bucket --- modules/simple_bucket/outputs.tf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/simple_bucket/outputs.tf diff --git a/modules/simple_bucket/outputs.tf b/modules/simple_bucket/outputs.tf new file mode 100644 index 00000000..73d8dacc --- /dev/null +++ b/modules/simple_bucket/outputs.tf @@ -0,0 +1,20 @@ +/** + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +output "bucket" { + description = "The created storage bucket" + value = google_storage_bucket.bucket +} From 32fb8cb5992509b64bf19db61a6119cb4d630ad5 Mon Sep 17 00:00:00 2001 From: Umair Idris Date: Mon, 24 Feb 2020 15:50:48 +0000 Subject: [PATCH 2/2] update docs --- modules/simple_bucket/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/simple_bucket/README.md b/modules/simple_bucket/README.md index 238de14d..98b86c80 100644 --- a/modules/simple_bucket/README.md +++ b/modules/simple_bucket/README.md @@ -50,6 +50,12 @@ Functional examples are included in the | storage\_class | The Storage Class of the new bucket. | string | `"null"` | no | | versioning | While set to true, versioning is fully enabled for this bucket. | bool | `"true"` | no | +## Outputs + +| Name | Description | +|------|-------------| +| bucket | The created storage bucket | + ## Requirements