HashiCorp Terraform is a popular open source tool for creating safe and predictable cloud infrastructure across several cloud providers. You can use the Databricks Terraform provider to manage your Databricks workspaces and the associated cloud infrastructure using a flexible, powerful tool. The goal of the Databricks Terraform provider is to support all Databricks REST APIs, supporting automation of the most complicated aspects of deploying and managing your data platforms. Databricks customers are using the Terraform provider to deploy and manage clusters and jobs, provision Databricks workspaces, and configure data access.
Databricks Terraform provider is not formally supported by Databricks. It is maintained by Databricks field engineering teams and provided as is. There is no service level agreement (SLA). Databricks makes no guarantees of any kind. If you discover an issue with the provider, file a GitHub Issue, and it will be reviewed by project maintainers as time permits.
Download and install the Terraform CLI. To read complete up-to-date documentation for the Databricks Terraform provider, see Terraform Registry. See also the HashiCorp Terraform documentation and configuration language reference.
Create a base Terraform configuration file and name it
main.tf. If you have already configured Databricks CLI, the following example will work without any changes. See the primary documentation on configuring authentication.
Initialize Terraform deployment to download the modules required to create Databricks jobs and notebooks in an automated way:
Run terraform apply to apply the execution plan:
For Terraform-specific support, use the HashiCorp community support channel. For full documentation on the Databricks Terraform provider, see Terraform Registry. For issues specific to Databricks Terraform Provider, use GitHub Issues.