Terraform module which creates Azure Databricks resources.
- Premium tier Databricks workspace created by default (trial tier available, which gives 14 days of free access to premium DBUs).
- Audit logs sent to given Log Analytics workspace by default.
- Simplified identity and access management using the
iamsubmodule.
- Azure role
Contributorat the resource group scope. - Azure role
Log Analytics Contributorat the Log Analytics workspace scope.
provider "azurerm" {
features {}
}
module "databricks" {
source = "equinor/databricks/azurerm"
version = "~> 4.3"
workspace_name = "example-databricks"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
log_analytics_workspace_id = module.log_analytics.workspace_id
}
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "westeurope"
}
module "log_analytics" {
source = "equinor/log-analytics/azurerm"
version = "~> 2.3"
workspace_name = "example-workspace"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
}The user or service principal that creates the Databricks workspace will be automatically assigned the workspace admin role.
-
Initialize working directory:
terraform init -
Execute tests:
terraform testSee
terraform testcommand documentation for options.