hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.29k stars 1.72k forks source link

Add support for pd-balanced storage option for Dataproc master and workers #11815

Open Bartosz-Stanisz opened 2 years ago

Bartosz-Stanisz commented 2 years ago

Community Note

Description

According to Dataproc docs it is possible to provision master and worker VMs with pd-balanced disk via gcloud and API. It would be nice to be able to use such config via Terraform - currently only option allowed are pd-standard and pd-ssd.

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_dataproc_cluster" "cluster" {
  cluster_config {
    master_config {
      disk_config {
        boot_disk_type = "pd-balanced"
      }
    }

    worker_config {
      disk_config {
        boot_disk_type = "pd-balanced"
      }
    }

    preemptible_worker_config {
      disk_config {
        boot_disk_type = "pd-balanced"
      }
    }
  }
}

References

b/338675069

melinath commented 4 months ago

This restriction doesn't seem to actually be enforced on the Terraform side, so this is just a docs change.

melinath commented 4 months ago

That is, users should be able to just use the pd-balanced value today; the docs are just outdated.