Skip to content

Commit

Permalink
feat: add outputs for simple bucket module (#38)
Browse files Browse the repository at this point in the history
* add outputs for simple bucket

* update docs
  • Loading branch information
umairidris authored Feb 26, 2020
1 parent 03e033f commit f93bf5d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/simple_bucket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## Requirements
Expand Down
20 changes: 20 additions & 0 deletions modules/simple_bucket/outputs.tf
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit f93bf5d

Please sign in to comment.