cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Terraform for Databricks

Snoonan
Contributor

Hi all,

I can't find guidance on how to create a Databricks access connector for connecting catalogs to external data locations, using Terraform.

Also, I want to create my catalogs, set-up external locations etc using Terraform. Has anyone got a good resource for doing this and tips on how to go about it?

Thanks,

Sean

2 REPLIES 2

Kaniz_Fatma
Community Manager
Community Manager

Hi @Snoonan, Creating a Databricks access connector for connecting catalogs to external data locations using Terraform is a great way to manage your Databricks workspaces and associated cloud infrastructure.

Let’s break it down:

  1. Databricks Access Connector with Terraform:

    • You can use the azurerm_databricks_access_connector resource in Terraform to manage your Databricks access connectors. Here’s an example usage:

      resource "azurerm_resource_group" "example" {
        name     = "example-resources"
        location = "West Europe"
      }
      
      resource "azurerm_databricks_access_connector" "example" {
        name               = "example-resource"
        resource_group_name = azurerm_resource_group.example.name
        location           = azurerm_resource_group.example.location
        identity {
          type = "SystemAssigned"
        }
        tags = {
          Environment = "Production"
        }
      }
      
    • The azurerm_databricks_access_connector resource allows you to specify the name, resource group, loc...1.

  2. Databricks Terraform Provider:

  3. Granting Access to Managed Identity:

  4. Additional Resources:

Remember to adapt the example code to your specific requirements, and feel free to ask if you need further assistance! 😊

 

Thank you,

This worked for me.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!