You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
HCL
46 lines
1.1 KiB
HCL
###############################################################################
|
|
# Greenfield MDP — Production Environment
|
|
# Provider configuration and required resource provider registrations
|
|
###############################################################################
|
|
|
|
terraform {
|
|
required_version = ">= 1.7.0"
|
|
|
|
required_providers {
|
|
azurerm = {
|
|
source = "hashicorp/azurerm"
|
|
version = "~> 4.0"
|
|
}
|
|
databricks = {
|
|
source = "databricks/databricks"
|
|
version = "~> 1.60"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "azurerm" {
|
|
features {
|
|
key_vault {
|
|
purge_soft_delete_on_destroy = false
|
|
}
|
|
resource_group {
|
|
prevent_deletion_if_contains_resources = true
|
|
}
|
|
}
|
|
|
|
subscription_id = var.subscription_id
|
|
}
|
|
|
|
# Account-level Databricks provider (for Unity Catalog metastore operations)
|
|
provider "databricks" {
|
|
alias = "account"
|
|
host = "https://accounts.azuredatabricks.net"
|
|
account_id = var.databricks_account_id
|
|
}
|
|
|
|
# Workspace-level Databricks provider (configured after workspace is created)
|
|
provider "databricks" {
|
|
alias = "workspace"
|
|
host = azurerm_databricks_workspace.this.workspace_url
|
|
}
|