You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
╷
│ Error: Authentication is not configured for provider. Please configure it
│ through one of the following options:
│ 1. DATABRICKS_HOST + DATABRICKS_TOKEN environment variables.
│ 2. host + token provider arguments.
│ 3. azure_databricks_workspace_id + AZ CLI authentication.
│ 4. azure_databricks_workspace_id + azure_client_id + azure_client_secret + azure_tenant_id for Azure Service Principal authentication.
│ 5. Run `databricks configure --token` that will create ~/.databrickscfg file.
│
│ Please check https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs#authentication for details
│
│ on workspace.tf line 25, in resource "databricks_token" "pat":
│ 25: resource "databricks_token" "pat" {
│
╵
Expected Behavior
Should work, PAT created as output
Actual Behavior
Failed, databricks_host is set but not databricks_token
It is not clear from documentation that this part is supposed to be in a different module or not
// initialize provider in normal mode
provider "databricks" {
// in normal scenario you won't have to give providers aliases
alias = "created_workspace"
host = databricks_mws_workspaces.this.workspace_url
}
// create PAT token to provision entities within workspace
resource "databricks_token" "pat" {
provider = databricks.created_workspace
comment = "Terraform Provisioning"
lifetime_seconds = 86400
}
// export token for integration tests to run on
output "databricks_token" {
value = databricks_token.pat.token_value
sensitive = true
}
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered:
nfx
changed the title
[ISSUE] Create workspace step doesn't run though
[DOC] Create workspace step doesn't run though
Apr 22, 2021
@felixsafegraph you should use a separate module or provider aliasing. We're working on a separate provider just for databricks_mws_* resources to remove this confusion.
Terraform Version
Affected Resource(s)
https://docs.databricks.com/dev-tools/terraform/e2-workspace.html#step-4-create-a-databricks-e2-workspace
Environment variable names
NONE
Terraform Configuration Files
Had it exactly as this section
https://docs.databricks.com/dev-tools/terraform/e2-workspace.html#step-4-create-a-databricks-e2-workspace
Output
Expected Behavior
Should work, PAT created as output
Actual Behavior
Failed,
databricks_host
is set but notdatabricks_token
It is not clear from documentation that this part is supposed to be in a different module or not
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: