forked from databricks/terraform-databricks-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.tf
42 lines (31 loc) · 777 Bytes
/
init.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
terraform {
required_providers {
databricks = {
source = "databricks/databricks"
}
google = {
source = "hashicorp/google"
}
}
}
provider "google" {
project = var.google_project
region = var.google_region
zone = var.google_zone
}
// initialize provider in "accounts" mode to provision new workspace
provider "databricks" {
alias = "accounts"
host = "https://accounts.gcp.databricks.com"
google_service_account = var.databricks_google_service_account
account_id = var.databricks_account_id
}
data "google_client_openid_userinfo" "me" {
}
data "google_client_config" "current" {
}
resource "random_string" "suffix" {
special = false
upper = false
length = 6
}