terraform-databricks-examples icon indicating copy to clipboard operation
terraform-databricks-examples copied to clipboard

Issue in resource "databricks_metastore_data_access" "first":

Open phongcq opened this issue 6 months ago • 0 comments
trafficstars

@alexott

Configuration

resource "databricks_metastore_data_access" "first" { provider = databricks.workspace metastore_id = databricks_metastore.this.id name = "${var.storage_credential_name}-root"

azure_managed_identity { access_connector_id = azurerm_databricks_access_connector.unity.id }

is_default = true depends_on = [databricks_metastore_assignment.this] } Expected Behavior Terraform should create the default metastore_data_access without errors after assigning the workspace to the Unity Catalog metastore.

Actual Behavior Terraform fails with the following error message: Error: cannot create metastore data access: User does not have CREATE EXTERNAL LOCATION on Metastore "*****'.

│ with databricks_metastore_data_access.first, │ on main.tf line 153, in resource "databricks_metastore_data_access" "first": │ 153: resource "databricks_metastore_data_access" "first" { This error occurs because the required EXTERNAL LOCATION resource and corresponding storage credentials are not created or registered prior to this step.

Run terraform apply.

Terraform and Provider Versions Terraform: 1.10.2 Databricks Provider: 1.17.0

phongcq avatar Apr 24 '25 16:04 phongcq