Hi - I have below code to create the credentials, storage and workspace through terraform script but only credentials and storage is created but failed to create the workspace with error. Can someone please guide/suggest what's wrong with the code/logic or is there any help available to check on this issue?
resource "databricks_mws_workspaces" "this" {
account_id = var.databricks_account_id
aws_region = "us-east-1"
workspace_name = "terraform-ws"
credentials_id = databricks_mws_credentials.this.credentials_id
storage_configuration_id = databricks_mws_storage_configurations.this.storage_configuration_id
token {
comment = "Terraform"
}
}
databricks_mws_storage_configurations.this: Creation complete after 1s [id=1e3b68c1-d860-4e9c-96cc-435da7e71e6d/60fc7968-0d3a-4259-a650-2174fdcb6da7]
databricks_mws_credentials.this: Creation complete after 1s [id=1e3b68c1-d860-4e9c-96cc-435da7e71e6d/ac6fce63-f284-4ad9-8510-fcf74e0f6dd8]
databricks_mws_workspaces.this: Creating...
│ Error: cannot create mws workspaces: 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