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.25k stars 1.7k forks source link

Support for dataproc sessionTemplates in Vertex Workbench #17664

Open lgbaeza opened 3 months ago

lgbaeza commented 3 months ago

Community Note

Description

A session template allows to run serverless interactive development through Dataproc Sessions in Jupyter notebooks, natively integrated with Vertex AI Workbench.

This feature is missing in Terraform, so WorkBench notebooks intended to run on top of Dataproc serverless, currently cannot be fully deployed with Terraform since users must create on their own the session templates (called runtime templates on the UI). The Dataproc API related to this resource is SessionTemplate

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_dataproc_session_template" "runtime_template" {
  name = "dataproc runtime template"
  description = "Serverless dataproc session to be used on Vertex AI"
  runtimeConfig = {
    containerImage = "gcr.io/my-project/custom-spark:v0.0"
  }
  environmentConfig = {
    executionConfig = {
      serviceAccount = "dataproc-sa@my-project.iam.gserviceaccount.com"
      networkUri = "default"
      subnetworkUri = "default"
    }
  }
}

References

b/331218090 b/331217910

melinath commented 3 months ago

Note from triage: This looks likely to require changes to both dataproc and workbench, but it's not entirely clear how a user should proceed in this case.