Open zaxier opened 10 months ago
Thanks for reporting this. I've followed up with the underlying team to respond with an appropriate error message rather than redirecting to the login page.
However, there is still an underlying issue that will need to be resolved. Are you able to create other account-level resources with your provider?
@zaxier databricks_grants
is only available as workspace-level resources
I got pretty much the same error and @nkvuong databricks_grants
according to documentation are used as well to grant privileges on metastore resources.
my code snippet is:
resource "databricks_grants" "dbrk_metastore_grant_we" {
provider = databricks.account
metastore = databricks_metastore.we.id
grant {
principal = "metastore admins"
privileges = [
"CREATE_EXTERNAL_LOCATION"
]
}
}
@jesinity it is counter-intuitive, but you still needs to execute that via a workspace. Essentially, it will grant access to the metastore that is currently assigned to the workspace.
Hello @nkvuong, I'm currently experiencing a similar issue while attempting to provide access to the metastore via an account. Although I've understood a solution to grant access via a workspace, I'm curious to understand the reasons behind Terraform's inability to accomplish the same access grant directly through an account
Hello @mohitdungrani , can you help me understand how you authenticated from workspace while deploying unity cataloge with tf?
Hello @sohailshaikh1920
To perform authentication via workspace, we need to pass the workspace URL inside the host parameter.
For example:
provider "databricks" {
host =
Reference: https://registry.terraform.io/providers/databricks/databricks/latest/docs#argument-reference
Description Bug faced when using
databricks_grants
resource using databricks terraform provider.Error: cannot create grants: unexpected error handling request: invalid character '<' looking for beginning of value. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:
Reproduction
Expected behavior I expected it to deploy grants.
Is it a regression? Unknown
Debug Logs
│ │ with module.uc_metastore.databricks_grants.this, │ on modules/4_uc_metastore/_uc_metastore.tf line 9, in resource "databricks_grants" "this": │ 9: resource "databricks_grants" "this" { │
Other Information
Additional context Add any other context about the problem here.