AWS Account Level provider "databricks" Authentication

samson01
New Contributor II

I am trying to deploy an additional workspace to my AWS Account with terraform, I keep running into this authentication an error message below, I have searched everywhere in my account console  and used chatgpt  which keep point me to the account console, I am on premium plan , Any hint where can find token to authenticate deploy account my terraform .

 

provider "databricks" {
  alias = "mws"
  account_id = var.databricks_account_id
  token = ""
}
Spoiler
Cannot create mws storage configurations: 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: host=https://accounts.cloud.databricks.com, account_id=XXXXXXXXc09-6ce4af6eb2e3, profile=ACCOUNT
 

Khaja_Zaffer
Esteemed Contributor

Hello @samson01 

Good day mate!

You can Manage to fix the issue by updating the provider.tf while. You need to create a Service Principle token and add that into your provider.tf file. 

provider "databricks" {
alias = "accounts"
client_id = "service-principle-id"
client_secret = "service-principle-secret"
account_id = "databricks-account-id"
 
 

View solution in original post

samson01
New Contributor II

thanks that works