cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
 
1 ACCEPTED SOLUTION

Accepted Solutions

Khaja_Zaffer
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

2 REPLIES 2

Khaja_Zaffer
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"
 
 

samson01
New Contributor II

thanks that works

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now