databricks/terraform-databricks-examples
HCL
Captured source
source ↗databricks/terraform-databricks-examples
Description: Examples of using Terraform to deploy Databricks resources
Language: HCL
License: NOASSERTION
Stars: 330
Forks: 221
Open issues: 75
Created: 2022-06-10T11:12:00Z
Pushed: 2026-05-26T09:37:12Z
Default branch: main
Fork: no
Archived: no
README:
terraform-databricks-examples
This repository contains the following:
- Multiple examples of Databricks workspace and resources deployment on Azure, AWS and GCP using Databricks Terraform provider.
- Examples of implementing CI/CD pipelines to automate your Terraform deployments using Azure DevOps or GitHub Actions.
- [Using the repository](#using-the-repository)
- [Repository structure](#repository-structure)
- [Repository content](#repository-content)
- [Examples](#examples)
- [Modules](#modules)
- [CI/CD pipelines](#cicd-pipelines)
- [Contributing](#contributing)
Using the repository
There are two ways to use this repository:
1. Use examples as a reference for your own Terraform code: Please refer to examples folder for individual examples. 2. Reuse modules from this repository: Please refer to modules folder.
Repository structure
Code in the repository is organized into the following folders:
modules- implementation of specific Terraform modules.examples- specific instances that use Terraform modules.cicd-pipelines- Detailed examples of implementing CI/CD pipelines to automate your Terraform deployments using Azure DevOps or GitHub Actions.
Repository content
> Note > For detailed information about the examples, modules, or CI/CD pipelines, refer to README.md file inside the corresponding folder for a detailed guide on setting up the CI/CD pipeline.
Examples
The folder examples contains the following Terraform implementation examples :
| Cloud | Example | Description | | ----- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | |Azure | [adb-lakehouse](examples/adb-lakehouse/) | Lakehouse terraform blueprints| | Azure | [adb-with-private-link-standard](examples/adb-with-private-link-standard/) | Provisioning Databricks on Azure with Private Link - Standard deployment | | Azure | [adb-vnet-injection](examples/adb-vnet-injection/) | A basic example of VNet injected Azure Databricks workspace | | Azure | [adb-exfiltration-protection](examples/adb-exfiltration-protection/) | A sample implementation of Data Exfiltration Protection | | Azure | ~~adb-external-hive-metastore~~ REMOVED | This example was removed in February 2026. External Hive metastore has been superseded by Unity Catalog. Use [adb-unity-catalog-basic-demo](examples/adb-unity-catalog-basic-demo/) instead. | | Azure | [adb-kafka](examples/adb-kafka/) | ADB - single node kafka template | | Azure | [adb-private-links](examples/adb-private-links/) | Azure Databricks Private Links | | Azure | [adb-squid-proxy](examples/adb-squid-proxy/) | ADB clusters with HTTP proxy | | Azure | [adb-teradata](examples/adb-teradata/) | ADB with single VM Teradata integration | | Azure | [adb-uc](examples/adb-uc/) | ADB Unity Catalog Process | | Azure | [adb-unity-catalog-basic-demo](examples/adb-unity-catalog-basic-demo/) | ADB Unity Catalog end-to-end demo including UC metastore setup, Users/groups sync from AAD to databricks account, UC Catalog, External locations, Schemas, & Access Grants | | Azure | [adb-overwatch](examples/adb-overwatch/) | Overwatch multi-workspace deployment on Azure | | AWS | [aws-workspace-basic](examples/aws-workspace-basic/) | Provisioning AWS Databricks E2 | | AWS | [aws-workspace-with-firewall](examples/aws-workspace-with-firewall/) | Provisioning AWS Databricks E2 with an AWS Firewall | | AWS | [aws-exfiltration-protection](examples/aws-exfiltration-protection/) | An implementation of Data Exfiltration Protection on AWS | | AWS | aws-workspace-with-private-link | Coming soon | | AWS | [aws-databricks-flat](examples/aws-databricks-flat/) | AWS Databricks simple example | | AWS | [aws-databricks-modular-privatelink](examples/aws-databricks-modular-privatelink/) | Deploy multiple AWS Databricks workspaces | | AWS | [aws-workspace-uc-simple](examples/aws-workspace-uc-simple/) | Provisioning AWS Databricks E2 with Unity Catalog in a single apply | | AWS | [aws-databricks-uc](examples/aws-databricks-uc/) | AWS UC | | AWS | [aws-databricks-uc-bootstrap](examples/aws-databricks-uc-bootstrap/) | AWS UC | | AWS | [aws-remote-backend-infra](examples/aws-remote-backend-infra/) | Simple example on remote backend | | AWS | [aws-workspace-config](examples/aws-workspace-config/) | Configure workspace objects | | GCP | [gcp-sa-provisionning](examples/gcp-sa-provisionning/) | Provisionning of the identity with the permissions required to deploy on GCP. | | GCP | [gcp-basic](examples/gcp-basic/) | Workspace Deployment with managed vpc | | GCP | [gcp-byovpc](examples/gcp-byovpc/) | Workspace Deployment with customer-managed vpc |
Modules
The folder modules contains the following Terraform modules :
| Cloud | Module | Description | | ----- |-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | All | [databricks-department-clusters](modules/databricks-department-clusters/) | Terraform module that creates Databricks resources for a team | | Azure | [adb-lakehouse](modules/adb-lakehouse/) | Lakehouse terraform blueprints | | Azure | [adb-lakehouse-uc](modules/adb-lakehouse-uc/) | Provisioning Unity Catalog resources and accounts principals | | Azure | [adb-with-private-link-standard](modules/adb-with-private-link-standard/) | Provisioning Databricks on…
Excerpt shown — open the source for the full document.