Skip to content

Commit d48bae7

Browse files
Stelminatorrosbo
authored andcommitted
Add versioning for google storage buckets (hashicorp#381)
1 parent b3120da commit d48bae7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/r/storage_bucket.html.markdown

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ to `google_storage_bucket_acl.predefined_acl`.
5858

5959
* `lifecycle_rule` - (Optional) The bucket's [Lifecycle Rules](https://cloud.google.com/storage/docs/lifecycle#configuration) configuration. Multiple blocks of this type are permitted. Structure is documented below.
6060

61+
* `versioning` - (Optional) The bucket's [Versioning](https://cloud.google.com/storage/docs/object-versioning) configuration.
62+
6163
* `website` - (Optional) Configuration if the bucket acts as a website. Structure is documented below.
6264

6365
* `cors` - (Optional) The bucket's [Cross-Origin Resource Sharing (CORS)](https://www.w3.org/TR/cors/) configuration. Multiple blocks of this type are permitted. Structure is documented below.
@@ -86,6 +88,10 @@ The `condition` block supports the following elements, and requires at least one
8688

8789
* `num_newer_versions` - (Optional) Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
8890

91+
The `versioning` block supports:
92+
93+
* `enabled` - (Optional) While set to `true`, versioning is fully enabled for this bucket.
94+
8995
The `website` block supports:
9096

9197
* `main_page_suffix` - (Optional) Behaves as the bucket's directory index where

0 commit comments

Comments
 (0)