-
Notifications
You must be signed in to change notification settings - Fork 151
/
Copy pathproviders.tf
37 lines (33 loc) · 883 Bytes
/
providers.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
terraform {
required_providers {
databricks = {
source = "databricks/databricks"
}
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
provider "aws" {
region = var.region
}
// initialize provider in "MWS" mode to provision new workspace
provider "databricks" {
alias = "mws"
host = "https://accounts.cloud.databricks.com"
account_id = var.databricks_account_id // like a shared account? HA from multiple email accounts
client_id = var.databricks_account_client_id
client_secret = var.databricks_account_client_secret
auth_type = "oauth-m2m"
}
provider "databricks" {
alias = "ws1"
host = "https://dbc-167215e3-dd0f.cloud.databricks.com"
token = var.pat_ws_1
}
provider "databricks" {
alias = "ws2"
host = "https://dbc-dc6a79a6-893f.cloud.databricks.com"
token = var.pat_ws_2
}