This example contains Terraform code used to provision a Lakehouse platform using the adb-lakehouse module. It also contains Terraform code to create the following:
- Unity Catalog metastore
- Unity Catalog resources: Catalog, Schema, table, storage credential and external location
- New principals in the Databricks account and assign them to the Databricks workspace.
This example can be used to deploy the following:
- A new resource group
- Networking resources including:
- Azure vnet
- The required subnets for the Azure Databricks workspace.
- Azure route table (if needed)
- Network Security Group (NSG)
- The Lakehouse platform resources, including:
- Azure Databricks workspace
- Azure Data Factory
- Azure Key Vault
- Azure Storage account
- Unity Catalog resources:
- Unity Catalog metastore
- Assignment of the UC metastore to the Azure Databricks workspace
- Creation of principals (groups and service principals) in Azure Databricks account
- Assignment of principals to the Azure Databricks workspace
- Creation of Unity Catalog resources (catalogs, schemas, external locations, grants)
- Update
terraform.tfvars
file and provide values to each defined variable - (Optional) Configure your remote backend
- Run
terraform init
to initialize terraform and get provider ready. - Run
terraform apply
to create the resources.