Bind existing databricks Catalog in unity catalog to the databricks workspace using Terraform

308 Views Asked by At

I have an existing catalog in the unity catalog .We need to bind this catalog to particular databricks worksapce.Is it possible to assign existing catalog to the new workspace? I found we can can assign the catalog to the workspace during catalog creation.But we have requirement to assign existing catalog the Azure Databricks worksapce using terrafom.

1

There are 1 best solutions below

0
Alex Ott On

You need to use catalog_workspace_binding resource for that:

resource "databricks_catalog_workspace_binding" "sandbox" {
  catalog_name = databricks_catalog.sandbox.name
  workspace_id = azurerm_databricks_workspace.ws.workspace_id
}

and make sure that the isolation mode is set to ISOLATED as mentioned in the docs.