-
Notifications
You must be signed in to change notification settings - Fork 125
/
workspace.tf
26 lines (20 loc) · 674 Bytes
/
workspace.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
resource "databricks_mws_workspaces" "databricks_workspace" {
account_id = var.databricks_account_id
workspace_name = "dbx-example-tf-deploy-${random_string.suffix.result}"
location = var.google_region
cloud_resource_container {
gcp {
project_id = var.google_project
}
}
network_id = databricks_mws_networks.databricks_network.network_id
gke_config {
connectivity_type = "PRIVATE_NODE_PUBLIC_MASTER"
master_ip_range = "10.3.0.0/28"
}
token {
comment = "Terraform token"
}
# this makes sure that the NAT is created for outbound traffic before creating the workspace
depends_on = [google_compute_router_nat.nat]
}