-
Notifications
You must be signed in to change notification settings - Fork 150
/
Copy pathproviders.tf
34 lines (32 loc) · 935 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
terraform {
/*
backend "s3" {
bucket = "tf-backend-bucket-haowang" # Replace this with your bucket name!
key = "global/s3-databricks-project/terraform.tfstate"
region = "ap-southeast-1"
dynamodb_table = "tf-backend-dynamodb-databricks-project" # Replace this with your DynamoDB table name!
encrypt = true
}
*/
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
client_id = var.databricks_account_client_id
client_secret = var.databricks_account_client_secret
auth_type = "oauth-m2m"
}