<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error: cannot create mws storage configurations: default auth: cannot configure default credentials. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-cannot-create-mws-storage-configurations-default-auth/m-p/54950#M30201</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I’ve run into an error that I can't figure out how to debug. We're trying to use terraform through a service account. I don’t know if it’s a permissions issue on &lt;/SPAN&gt;&lt;SPAN class=""&gt;Databricks&lt;/SPAN&gt;&lt;SPAN&gt;, in our account, or in AWS, but it seems that something is being blocked somewhere. We’re getting a pretty generic failure. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's our configuration&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;// initialize provider in "MWS" mode to provision new workspace&lt;/SPAN&gt;
&lt;SPAN class=""&gt;provider&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;databricks&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; {
  alias    &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;mws&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  host     &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;https://accounts.cloud.databricks.com&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  client_id &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;318477c1-e16d-402e-8ba5-46653a2c98e1&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  client_secret &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&amp;lt;omitted for security&amp;gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  account_id &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;67533872-e1d4-4932-b025-0642043fb05c&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
}&lt;/PRE&gt;&lt;P class=""&gt;When I execute the terraform plan, we get this error:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;Error: cannot create mws storage configurations: default auth: cannot configure default credentials. Config: host=https://accounts.cloud.databricks.com&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've run a DEBUG mode for the terraform, too. These seem to be the relevant lines:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;2023-12-08T11:00:04.939-0500 [DEBUG] provider.terraform-provider-databricks_v1.29.0: Databricks CLI version &amp;lt;0.100.0 detected: @caller=/home/runner/work/terraform-provider-databricks/terraform-provider-databricks/logger/logger.go:33 tf_resource_type=databricks_mws_networks @module=databricks tf_provider_addr=registry.terraform.io/databricks/databricks tf_req_id=c37844bd-3b5f-2c84-6515-f93c480fd27e tf_rpc=ApplyResourceChange timestamp=2023-12-08T11:00:04.939-0500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;2023-12-08T11:00:04.939-0500 [DEBUG] provider.terraform-provider-databricks_v1.29.0: failed during request visitor: default auth: cannot configure default credentials. Config: host=https://accounts.cloud.databricks.com: tf_resource_type=databricks_mws_networks @caller=/home/runner/work/terraform-provider-databricks/terraform-provider-databricks/logger/logger.go:33 @module=databricks tf_provider_addr=registry.terraform.io/databricks/databricks tf_req_id=c37844bd-3b5f-2c84-6515-f93c480fd27e tf_rpc=ApplyResourceChange timestamp=2023-12-08T11:00:04.939-0500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;2023-12-08T11:00:04.939-0500 [ERROR] provider.terraform-provider-databricks_v1.29.0: Response contains error diagnostic: tf_proto_version=5.4 diagnostic_detail="" diagnostic_summary="cannot create mws networks: default auth: cannot configure default credentials. Config: host=https://accounts.cloud.databricks.com" tf_provider_addr=registry.terraform.io/databricks/databricks tf_req_id=c37844bd-3b5f-2c84-6515-f93c480fd27e @module=sdk.proto tf_resource_type=databricks_mws_networks @caller=/home/runner/work/terraform-provider-databricks/terraform-provider-databricks/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_severity=ERROR tf_rpc=ApplyResourceChange timestamp=2023-12-08T11:00:04.939-0500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;2023-12-08T11:00:04.940-0500 [DEBUG] State storage *remote.State declined to persist a state snapshot&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;2023-12-08T11:00:04.940-0500 [ERROR] vertex "module.workspace.databricks_mws_networks.thisNet" error: cannot create mws networks: default auth: cannot configure default credentials. Config: host=https://accounts.cloud.databricks.com&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Any ideas?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 16:59:57 GMT</pubDate>
    <dc:creator>thains</dc:creator>
    <dc:date>2023-12-08T16:59:57Z</dc:date>
    <item>
      <title>Error: cannot create mws storage configurations: default auth: cannot configure default credentials.</title>
      <link>https://community.databricks.com/t5/data-engineering/error-cannot-create-mws-storage-configurations-default-auth/m-p/54950#M30201</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I’ve run into an error that I can't figure out how to debug. We're trying to use terraform through a service account. I don’t know if it’s a permissions issue on &lt;/SPAN&gt;&lt;SPAN class=""&gt;Databricks&lt;/SPAN&gt;&lt;SPAN&gt;, in our account, or in AWS, but it seems that something is being blocked somewhere. We’re getting a pretty generic failure. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's our configuration&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;// initialize provider in "MWS" mode to provision new workspace&lt;/SPAN&gt;
&lt;SPAN class=""&gt;provider&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;databricks&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; {
  alias    &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;mws&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  host     &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;https://accounts.cloud.databricks.com&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  client_id &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;318477c1-e16d-402e-8ba5-46653a2c98e1&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  client_secret &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&amp;lt;omitted for security&amp;gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  account_id &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;67533872-e1d4-4932-b025-0642043fb05c&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
}&lt;/PRE&gt;&lt;P class=""&gt;When I execute the terraform plan, we get this error:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;Error: cannot create mws storage configurations: default auth: cannot configure default credentials. Config: host=https://accounts.cloud.databricks.com&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've run a DEBUG mode for the terraform, too. These seem to be the relevant lines:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;2023-12-08T11:00:04.939-0500 [DEBUG] provider.terraform-provider-databricks_v1.29.0: Databricks CLI version &amp;lt;0.100.0 detected: @caller=/home/runner/work/terraform-provider-databricks/terraform-provider-databricks/logger/logger.go:33 tf_resource_type=databricks_mws_networks @module=databricks tf_provider_addr=registry.terraform.io/databricks/databricks tf_req_id=c37844bd-3b5f-2c84-6515-f93c480fd27e tf_rpc=ApplyResourceChange timestamp=2023-12-08T11:00:04.939-0500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;2023-12-08T11:00:04.939-0500 [DEBUG] provider.terraform-provider-databricks_v1.29.0: failed during request visitor: default auth: cannot configure default credentials. Config: host=https://accounts.cloud.databricks.com: tf_resource_type=databricks_mws_networks @caller=/home/runner/work/terraform-provider-databricks/terraform-provider-databricks/logger/logger.go:33 @module=databricks tf_provider_addr=registry.terraform.io/databricks/databricks tf_req_id=c37844bd-3b5f-2c84-6515-f93c480fd27e tf_rpc=ApplyResourceChange timestamp=2023-12-08T11:00:04.939-0500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;2023-12-08T11:00:04.939-0500 [ERROR] provider.terraform-provider-databricks_v1.29.0: Response contains error diagnostic: tf_proto_version=5.4 diagnostic_detail="" diagnostic_summary="cannot create mws networks: default auth: cannot configure default credentials. Config: host=https://accounts.cloud.databricks.com" tf_provider_addr=registry.terraform.io/databricks/databricks tf_req_id=c37844bd-3b5f-2c84-6515-f93c480fd27e @module=sdk.proto tf_resource_type=databricks_mws_networks @caller=/home/runner/work/terraform-provider-databricks/terraform-provider-databricks/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_severity=ERROR tf_rpc=ApplyResourceChange timestamp=2023-12-08T11:00:04.939-0500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;2023-12-08T11:00:04.940-0500 [DEBUG] State storage *remote.State declined to persist a state snapshot&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;2023-12-08T11:00:04.940-0500 [ERROR] vertex "module.workspace.databricks_mws_networks.thisNet" error: cannot create mws networks: default auth: cannot configure default credentials. Config: host=https://accounts.cloud.databricks.com&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 16:59:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-cannot-create-mws-storage-configurations-default-auth/m-p/54950#M30201</guid>
      <dc:creator>thains</dc:creator>
      <dc:date>2023-12-08T16:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error: cannot create mws storage configurations: default auth: cannot configure default credenti</title>
      <link>https://community.databricks.com/t5/data-engineering/error-cannot-create-mws-storage-configurations-default-auth/m-p/54954#M30203</link>
      <description>&lt;P&gt;Ok. I found the issue here. We had a *second* place where we were setting up the databricks provider, which I had not updated with the proper client credentials.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 18:59:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-cannot-create-mws-storage-configurations-default-auth/m-p/54954#M30203</guid>
      <dc:creator>thains</dc:creator>
      <dc:date>2023-12-08T18:59:31Z</dc:date>
    </item>
  </channel>
</rss>

