mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-21 09:15:57 +00:00
put closing brace for cluster config in correct location
This commit is contained in:
parent
2704faa0af
commit
449b21b7ee
|
@ -41,40 +41,40 @@ resource "google_dataproc_cluster" "mycluster" {
|
||||||
boot_disk_size_gb = 10
|
boot_disk_size_gb = 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
worker_config {
|
worker_config {
|
||||||
num_instances = 2
|
num_instances = 2
|
||||||
machine_type = "n1-standard-1"
|
machine_type = "n1-standard-1"
|
||||||
disk_config {
|
disk_config {
|
||||||
boot_disk_size_gb = 10
|
boot_disk_size_gb = 10
|
||||||
num_local_ssds = 1
|
num_local_ssds = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
preemptible_worker_config {
|
preemptible_worker_config {
|
||||||
num_instances = 0
|
num_instances = 0
|
||||||
}
|
|
||||||
|
|
||||||
# Override or set some custom properties
|
|
||||||
software_config {
|
|
||||||
image_version = "preview"
|
|
||||||
override_properties = {
|
|
||||||
"dataproc:dataproc.allow.zero.workers" = "true"
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
gce_cluster_config {
|
# Override or set some custom properties
|
||||||
#network = "${google_compute_network.dataproc_network.name}"
|
software_config {
|
||||||
tags = ["foo", "bar"]
|
image_version = "preview"
|
||||||
}
|
override_properties = {
|
||||||
|
"dataproc:dataproc.allow.zero.workers" = "true"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# You can define multiple initialization_action blocks
|
gce_cluster_config {
|
||||||
initialization_action {
|
#network = "${google_compute_network.dataproc_network.name}"
|
||||||
script = "gs://dataproc-initialization-actions/stackdriver/stackdriver.sh"
|
tags = ["foo", "bar"]
|
||||||
timeout_sec = 500
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
# You can define multiple initialization_action blocks
|
||||||
|
initialization_action {
|
||||||
|
script = "gs://dataproc-initialization-actions/stackdriver/stackdriver.sh"
|
||||||
|
timeout_sec = 500
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user