Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Provisioning Databricks workspace on GCP with a custom VPC

=========================

In this template, we show how to deploy a workspace with a custom vpc.

Requirements

  • You need to have run gcp-sa-provisionning and have a service account to fill in the variables.
  • If you want to deploy to a new project, you will need to grant the custom role generated in that template to the service acount in the new project.
  • The sizing of the custom vpc subnets needs to be appropriate for the usage of the workspace. This documentation covers it

Run as an SA

You can do the same thing by provisionning a service account that will have the same permissions - and associate the key associated to it.

Run the tempalte

  • You need to fill in the variables.tf
  • run terraform init
  • run teraform apply

Requirements

No requirements.

Providers

Name Version
google n/a

Modules

Name Source Version
gcp-byovpc github.com/databricks/terraform-databricks-examples/modules/gcp-workspace-byovpc n/a

Resources

Name Type
google_client_config.current data source
google_client_openid_userinfo.me data source

Inputs

Name Description Type Default Required
databricks_account_id Databricks Account ID string n/a yes
databricks_google_service_account Email of the service account used for deployment string n/a yes
delegate_from Identities to allow to impersonate created service account (in form of user:[email protected], group:[email protected] or serviceAccount:[email protected]) list(string) n/a yes
google_project Google project for VCP/workspace deployment string n/a yes
google_region Google region for VCP/workspace deployment string n/a yes
google_zone Zone in GCP region string n/a yes
nat_name Name of the NAT service in compute router string n/a yes
pod_ip_cidr_range IP Range for Pods subnet (secondary) string n/a yes
prefix Prefix to use in generated VPC name string n/a yes
router_name Name of the compute router to create string n/a yes
subnet_ip_cidr_range IP Range for Nodes subnet (primary) string n/a yes
subnet_name Name of the subnet to create string n/a yes
svc_ip_cidr_range IP Range for Services subnet (secondary) string n/a yes

Outputs

Name Description
databricks_host n/a
databricks_token n/a