cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Databricks Terraform Cluster Issue.

Simon_T
New Contributor III

Error: default auth: cannot configure default credentials. Config: token=***. Env: DATABRICKS_TOKEN

on cluster.tf line 27, in data “databricks_spark_version” “latest_lts”:
27: data “databricks_spark_version” “latest_lts” {

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @Simon_T , Based on the given error message and the provided information, it seems that the default authentication credentials are not properly configured for Databricks.

To resolve this issue, you need to set up the authentication using a personal access token.

Here are the steps to configure and use personal access token authentication:

1. Create or identify a configuration profile in your .databrickscfg file with the following fields:
 

   [profile-name]
  host = <workspace-url>
  token = <personal-access-token>
 

2. Use the Databricks CLI's --profile or -p option followed by the name of your configuration profile in the CLI command call.

For example:
 

   databricks clusters list -p profile-name
 

3. Make sure to replace <workspace-url> with the URL of your Databricks workspace and <personal-access-token> with your actual personal access token.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group