cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

"Error: cannot read mws credentials: invalid Databricks Account configuration" on TF Destroy

lindsey
New Contributor

I have a terraform project that creates a workspace in Databricks, assigns it to an existing metastore, then creates external location/storage credential/catalog. The apply works and all expected resources are created. However, without touching any resources, just immediately doing a `terraform destroy`, I get an error:

│ Error: cannot read mws credentials: invalid Databricks Account configuration

│ with databricks_mws_credentials.this,
│ on mws.tf line 1, in resource "databricks_mws_credentials" "this":
│ 1: resource "databricks_mws_credentials" "this" {

Happy to provide more details on my code, but hoping someone can at least point me in the direction to look to resolve this issue. (Obviously hope to not be destroying all these resources often, but as I'm testing my IaaC out, it's a real pain to have to delete everything manually because destroy doesn't work).

Thanks!

0 REPLIES 0

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