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 - Error while creating workspace

Shrinivas
New Contributor

Hi - I have below code to create the credentials, storage and workspace through terraform script but only credentials and storage is created but failed to create the workspace with error.  Can someone please guide/suggest what's wrong with the code/logic or is there any help available to check on this issue?

resource "databricks_mws_workspaces" "this" {
account_id = var.databricks_account_id
aws_region = "us-east-1"
workspace_name = "terraform-ws"

credentials_id = databricks_mws_credentials.this.credentials_id
storage_configuration_id = databricks_mws_storage_configurations.this.storage_configuration_id
token {
comment = "Terraform"
}
}

 

databricks_mws_storage_configurations.this: Creation complete after 1s [id=1e3b68c1-d860-4e9c-96cc-435da7e71e6d/60fc7968-0d3a-4259-a650-2174fdcb6da7]

databricks_mws_credentials.this: Creation complete after 1s [id=1e3b68c1-d860-4e9c-96cc-435da7e71e6d/ac6fce63-f284-4ad9-8510-fcf74e0f6dd8]

databricks_mws_workspaces.this: Creating...

│ Error: cannot create mws workspaces: 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

 

1 REPLY 1

szymon_dybczak
Contributor III

Hi @Shrinivas , 

Could you share with us how you configured datbricks provider?

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