Closed bgiardie closed 2 years ago
@bgiardie currently, the Databricks account console does not support token-based authentication, hence the error message.
@nkvuong , what about the group? There are account level groups, why is that data ref returning the same error?
do you have the terraform configuration for the group resource/data source? account-level groups are supported, but not all attributes are supported
I just tested locally, if you specify the provider with the following information, then group/user/sp management at account-level will work
provider "databricks" {
host = "https://accounts.cloud.databricks.com"
account_id = var.databricks_account_id
username = var.databricks_account_username
password = var.databricks_account_password
}
Hi there,
Attempting to deploy account level permission on a service principle, but receive warning the provider must be set in Workspace mode.
Configuration
Expected Behavior
Deploy module at account level.
Actual Behavior
Error: Databricks API (/api/2.0/preview/scim/v2/Groups) requires you to set
host
property (or DATABRICKS_HOST env variable) to result ofdatabricks_mws_workspaces.this.workspace_url
. This error may happen if you're using provider in both normal and multiworkspace mode. Please refactor your code into different modules. Runnable example that we use for integration testing can be found in this repository at https://registry.terraform.io/providers/databricks/databricks/latest/docs/guides/aws-workspaceTerraform and provider versions
terraform 0.13.7 databricks 1.0.2