I'm creating a unity catalog using terraform on Azure. The first couple of apply worked just fine, no error at all, but suddenly today when i wanted to incorporate another change to the code which was not related to databicks, terraform started giving me below error message:
Error: cannot read metastore assignment: failed during request visitor: default auth: cannot configure default credentials, please check https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication to configure credentials for your preferred authentication method. Config: azure_client_secret=***, azure_client_id=<MY_CLUIENT_ID>, azure_tenant_id=<MY_TENANT_ID>. Env: ARM_CLIENT_SECRET, ARM_CLIENT_ID, ARM_TENANT_ID
│
│ with module.databricks.databricks_metastore_assignment.this,
│ on .terraform/modules/databricks/main.tf line 180, in resource "databricks_metastore_assignment" "this":
│ 180: resource "databricks_metastore_assignment" "this" {
In terms of providers, i only have the default for azurerm and one for databricks:
provider "azurerm" {
features {}
}
provider "databricks" {
host = module.databricks.databricks.workspace_url
}
what is strange about this error, is that it doesn't fail during the first couple of apply, it's more like a random error. any idea what could be the root cause of this error? any suggestions? Thanks in advance.