-
Notifications
You must be signed in to change notification settings - Fork 7
/
provider.tf
43 lines (38 loc) · 1.1 KB
/
provider.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
43
# -----------------------
# Azure Provider - Main #
# -----------------------
# Define Terraform provider
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
}
databricks = {
source = "databricks/databricks"
}
}
}
# Define the Azure provider
provider "azurerm" {
client_id = var.aad_client_id
client_secret = var.aad_client_secret
tenant_id = var.aad_tenant_id
subscription_id = var.aad_subscription_id
features {}
}
# Define the Databricks Workspace provider
provider "databricks" {
host = var.databricks_workspace_url
azure_client_id = var.aad_client_id
azure_tenant_id = var.aad_tenant_id
azure_client_secret = var.aad_client_secret
}
# Define the Databricks Account provider
provider "databricks" {
alias = "account"
host = "https://accounts.azuredatabricks.net"
account_id = var.databricks_account_id
azure_client_id = var.aad_client_id
azure_tenant_id = var.aad_tenant_id
azure_client_secret = var.aad_client_secret
}