Skip to content

Commit 9b00eea

Browse files
rileykarsonnat-henderson
authored andcommitted
Add support for boot_disk_type to google_dataproc_cluster (hashicorp#1855)
1 parent 2e95059 commit 9b00eea

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

docs/r/dataproc_cluster.html.markdown

+20-10
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ resource "google_dataproc_cluster" "mycluster" {
3838
num_instances = 1
3939
machine_type = "n1-standard-1"
4040
disk_config {
41+
boot_disk_type = "pd-ssd"
4142
boot_disk_size_gb = 10
4243
}
4344
}
@@ -100,7 +101,7 @@ resource "google_dataproc_cluster" "mycluster" {
100101

101102
- - -
102103

103-
The **cluster_config** block supports:
104+
The `cluster_config` block supports:
104105

105106
```hcl
106107
cluster_config {
@@ -149,7 +150,7 @@ The **cluster_config** block supports:
149150

150151
- - -
151152

152-
The **cluster_config.gce_cluster_config** block supports:
153+
The `cluster_config.gce_cluster_config` block supports:
153154

154155
```hcl
155156
cluster_config {
@@ -203,14 +204,15 @@ The **cluster_config.gce_cluster_config** block supports:
203204
will be launched in.
204205
- - -
205206

206-
The **cluster_config.master_config** block supports:
207+
The `cluster_config.master_config` block supports:
207208

208209
```hcl
209210
cluster_config {
210211
master_config {
211212
num_instances = 1
212213
machine_type = "n1-standard-1"
213214
disk_config {
215+
boot_disk_type = "pd-ssd"
214216
boot_disk_size_gb = 10
215217
num_local_ssds = 1
216218
}
@@ -225,25 +227,31 @@ The **cluster_config.master_config** block supports:
225227
to create for the master. If not specified, GCP will default to a predetermined
226228
computed value (currently `n1-standard-4`).
227229

228-
* `disk_config.boot_disk_size_gb` - (Optional, Computed) Size of the primary disk attached to each node, specified
230+
* `disk_config` (Optional) Disk Config
231+
232+
* `disk_config.boot_disk_type` - (Optional) The disk type of the primary disk attached to each node.
233+
One of `"pd-ssd"` or `"pd-standard"`. Defaults to `"pd-standard"`.
234+
235+
* `disk_config.boot_disk_size_gb` - (Optional, Computed) Size of the primary disk attached to each node, specified
229236
in GB. The primary disk contains the boot volume and system libraries, and the
230237
smallest allowed disk size is 10GB. GCP will default to a predetermined
231238
computed value if not set (currently 500GB). Note: If SSDs are not
232239
attached, it also contains the HDFS data blocks and Hadoop working directories.
233240

234-
* `disk_config.num_local_ssds` - (Optional) The amount of local SSD disks that will be
241+
* `disk_config.num_local_ssds` - (Optional) The amount of local SSD disks that will be
235242
attached to each master cluster node. Defaults to 0.
236243

237244
- - -
238245

239-
The **cluster_config.worker_config** block supports:
246+
The `cluster_config.worker_config` block supports:
240247

241248
```hcl
242249
cluster_config {
243250
worker_config {
244251
num_instances = 3
245252
machine_type = "n1-standard-1"
246253
disk_config {
254+
boot_disk_type = "pd-standard"
247255
boot_disk_size_gb = 10
248256
num_local_ssds = 1
249257
}
@@ -265,6 +273,9 @@ The **cluster_config.worker_config** block supports:
265273

266274
* `disk_config` (Optional) Disk Config
267275

276+
* `disk_config.boot_disk_type` - (Optional) The disk type of the primary disk attached to each node.
277+
One of `"pd-ssd"` or `"pd-standard"`. Defaults to `"pd-standard"`.
278+
268279
* `boot_disk_size_gb` - (Optional, Computed) Size of the primary disk attached to each worker node, specified
269280
in GB. The smallest allowed disk size is 10GB. GCP will default to a predetermined
270281
computed value if not set (currently 500GB). Note: If SSDs are not
@@ -275,7 +286,7 @@ The **cluster_config.worker_config** block supports:
275286

276287
- - -
277288

278-
The **cluster_config.preemptible_worker_config** block supports:
289+
The `cluster_config.preemptible_worker_config` block supports:
279290

280291
```hcl
281292
cluster_config {
@@ -303,7 +314,7 @@ will be set for you based on whatever was set for the `worker_config.machine_typ
303314

304315
- - -
305316

306-
The **cluster_config.software_config** block supports:
317+
The `cluster_config.software_config` block supports:
307318

308319
```hcl
309320
cluster_config {
@@ -330,7 +341,7 @@ The **cluster_config.software_config** block supports:
330341

331342
- - -
332343

333-
The **initialization_action** block (Optional) can be specified multiple times and supports:
344+
The `initialization_action` block (Optional) can be specified multiple times and supports:
334345

335346
```hcl
336347
cluster_config {
@@ -370,7 +381,6 @@ exported:
370381
* `cluster_config.software_config.properties` - A list of the properties used to set the daemon config files.
371382
This will include any values supplied by the user via `cluster_config.software_config.override_properties`
372383

373-
<a id="timeouts"></a>
374384
## Timeouts
375385

376386
`google_dataproc_cluster` provides the following

0 commit comments

Comments
 (0)