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 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 +}