Skip to content

Commit 72b9b03

Browse files
authored
Dataproc autogen bucket changes (hashicorp#1171)
* add extra wait for storage bucket object deletion * make timeout for object deletion 5 minutes, make it succeed 3 times * delete the cluster before deleting the bucket * deprecate delete_autogen_bucket * improve deprecation message
1 parent 438bec8 commit 72b9b03

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/r/dataproc_cluster.html.markdown

+3-5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ resource "google_dataproc_cluster" "mycluster" {
3232
}
3333
3434
cluster_config {
35-
delete_autogen_bucket = true
3635
staging_bucket = "dataproc-staging-bucket"
3736
3837
master_config {
@@ -105,8 +104,6 @@ The **cluster_config** block supports:
105104

106105
```hcl
107106
cluster_config {
108-
delete_autogen_bucket = true
109-
110107
gce_cluster_config { ... }
111108
master_config { ... }
112109
worker_config { ... }
@@ -126,10 +123,11 @@ The **cluster_config** block supports:
126123
with other clusters in the same region/zone also choosing to use the auto generation
127124
option.
128125

129-
* `delete_autogen_bucket` (Optional) If this is set to true, upon destroying the cluster,
126+
* `delete_autogen_bucket` (Optional, Deprecated) If this is set to true, upon destroying the cluster,
130127
if no explicit `staging_bucket` was specified (i.e. an auto generated bucket was relied
131128
upon) then this auto generated bucket will also be deleted as part of the cluster destroy.
132-
By default this is set to false.
129+
By default this is set to false. This value is deprecated: autogenerated buckets are shared by
130+
all clusters in the same region, so deleting the bucket could adversely harm other dataproc clusters.
133131

134132
* `gce_cluster_config` (Optional) Common config settings for resources of Google Compute Engine cluster
135133
instances, applicable to all instances in the cluster. Structure defined below.

0 commit comments

Comments
 (0)