I'm in the progress of enabling Databricks Unity Catalog and encountered a problem with the databricks_metastore_data_access Terraform resource:
resource "databricks_metastore_data_access" "this" {
provider = databricks.account-level
metastore_id = databricks_metastore.this.id
name = "mi-access-databricks-metastore"
owner = "admin-group"
force_destroy = true
is_default = true
azure_managed_identity {
access_connector_id = azurerm_databricks_access_connector.this.id
}
}
The Terraform apply run will always fail with following error: Error: cannot create metastore data access:
Unfortunately I get no more error details than the message from above.
The funny thing is that all other Unity Catalog related resource were created successfully and looking at the Account Console I can see that the metastore was assigned to my Databricks workspace.
So my question: Do you know for what the metastore data access resource is used for and do I even need it? If yes, how can I fix this issue?