-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.tf
More file actions
27 lines (25 loc) · 810 Bytes
/
Copy pathinit.tf
File metadata and controls
27 lines (25 loc) · 810 Bytes
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
terraform {
required_providers {
databricks = {
source = "databricks/databricks"
version = "1.7.0"
}
aws = {
source = "hashicorp/aws"
version = "~> 4.15.0" # version = "3.49.0"
}
}
}
provider "aws" {
region = var.region
}
// Initialize provider in "MWS" mode to provision the new workspace.
// alias = "mws" instructs Databricks to connect to https://accounts.cloud.databricks.com, to create
// a Databricks workspace that uses the E2 version of the Databricks on AWS platform.
// See https://registry.terraform.io/providers/databricks/databricks/latest/docs#authentication
provider "databricks" {
alias = "mws"
host = "https://accounts.cloud.databricks.com"
username = var.databricks_account_username
password = var.databricks_account_password
}