Skip to content

Commit

Permalink
feat: add name and url outputs on simple_bucket module (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbpaux authored Jul 13, 2022
1 parent d217c75 commit d76ffa3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/simple_bucket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ Functional examples are included in the
| Name | Description |
|------|-------------|
| bucket | The created storage bucket |
| name | Bucket name. |
| url | Bucket URL. |

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

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

0 comments on commit d76ffa3

Please sign in to comment.