<?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 credentials: Cannot complete request; user is unauthenticated in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-cannot-create-mws-credentials-cannot-complete-request-user/m-p/31734#M23114</link>
    <description>&lt;P&gt;I am configuring databricks_mws_credentials through Terraform on AWS. This used to work up to a couple days ago - now, I am getting "Error: cannot create mws credentials: Cannot complete request; user is unauthenticated".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My user/pw/account credentials are correct. They are passed through environment variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export TF_VAR_databricks_account_username="[...]"&lt;/P&gt;&lt;P&gt;export TF_VAR_databricks_account_password="[...]"&lt;/P&gt;&lt;P&gt;export TF_VAR_databricks_account_id="[...]"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I boiled it down to a minimal example showing the error. It is based on &lt;A href="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/mws_credentials" alt="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/mws_credentials" target="_blank"&gt;https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/mws_credentials&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;terraform {&lt;/P&gt;&lt;P&gt;&amp;nbsp;required_providers {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aws = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;source&amp;nbsp;= "hashicorp/aws"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;version = "~&amp;gt; 3.70.0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;databricks = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;source&amp;nbsp;= "databricks/databricks"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;version = "1.2.0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;required_version = "&amp;gt;= 1.0.0"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provider "aws" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;alias = "databricks"&lt;/P&gt;&lt;P&gt;&amp;nbsp;region = var.region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;assume_role {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;role_arn = "arn:aws:iam::${var.isee_databricks_aws_account_id}:role/terraform"&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Initialize provider in "MWS" mode to provision the new workspace.&lt;/P&gt;&lt;P&gt;// See &lt;A href="https://registry.terraform.io/providers/databricks/databricks/latest/docs#authentication" alt="https://registry.terraform.io/providers/databricks/databricks/latest/docs#authentication" target="_blank"&gt;https://registry.terraform.io/providers/databricks/databricks/latest/docs#authentication&lt;/A&gt;&lt;/P&gt;&lt;P&gt;provider "databricks" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;alias&amp;nbsp;&amp;nbsp;&amp;nbsp;= "mws"&lt;/P&gt;&lt;P&gt;&amp;nbsp;host&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "&lt;A href="https://accounts.cloud.databricks.com" alt="https://accounts.cloud.databricks.com" target="_blank"&gt;https://accounts.cloud.databricks.com&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;username = var.databricks_account_username&lt;/P&gt;&lt;P&gt;&amp;nbsp;password = var.databricks_account_password&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data "databricks_aws_assume_role_policy" "this" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;external_id = var.databricks_account_id&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "aws_iam_role" "cross_account_role" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "test-crossaccount"&lt;/P&gt;&lt;P&gt;&amp;nbsp;assume_role_policy = data.databricks_aws_assume_role_policy.this.json&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data "databricks_aws_crossaccount_policy" "this" {&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "aws_iam_role_policy" "this" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;name&amp;nbsp;&amp;nbsp;= "test-policy"&lt;/P&gt;&lt;P&gt;&amp;nbsp;role&amp;nbsp;&amp;nbsp;= aws_iam_role.cross_account_role.id&lt;/P&gt;&lt;P&gt;&amp;nbsp;policy = data.databricks_aws_crossaccount_policy.this.json&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "databricks_mws_credentials" "this" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;provider&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= databricks.mws&lt;/P&gt;&lt;P&gt;&amp;nbsp;account_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= var.databricks_account_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;credentials_name = "test-creds"&lt;/P&gt;&lt;P&gt;&amp;nbsp;role_arn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= aws_iam_role.cross_account_role.arn&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 15:21:33 GMT</pubDate>
    <dc:creator>Andrei_Radulesc</dc:creator>
    <dc:date>2022-09-14T15:21:33Z</dc:date>
    <item>
      <title>Error: cannot create mws credentials: Cannot complete request; user is unauthenticated</title>
      <link>https://community.databricks.com/t5/data-engineering/error-cannot-create-mws-credentials-cannot-complete-request-user/m-p/31734#M23114</link>
      <description>&lt;P&gt;I am configuring databricks_mws_credentials through Terraform on AWS. This used to work up to a couple days ago - now, I am getting "Error: cannot create mws credentials: Cannot complete request; user is unauthenticated".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My user/pw/account credentials are correct. They are passed through environment variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export TF_VAR_databricks_account_username="[...]"&lt;/P&gt;&lt;P&gt;export TF_VAR_databricks_account_password="[...]"&lt;/P&gt;&lt;P&gt;export TF_VAR_databricks_account_id="[...]"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I boiled it down to a minimal example showing the error. It is based on &lt;A href="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/mws_credentials" alt="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/mws_credentials" target="_blank"&gt;https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/mws_credentials&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;terraform {&lt;/P&gt;&lt;P&gt;&amp;nbsp;required_providers {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aws = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;source&amp;nbsp;= "hashicorp/aws"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;version = "~&amp;gt; 3.70.0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;databricks = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;source&amp;nbsp;= "databricks/databricks"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;version = "1.2.0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;required_version = "&amp;gt;= 1.0.0"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provider "aws" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;alias = "databricks"&lt;/P&gt;&lt;P&gt;&amp;nbsp;region = var.region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;assume_role {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;role_arn = "arn:aws:iam::${var.isee_databricks_aws_account_id}:role/terraform"&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Initialize provider in "MWS" mode to provision the new workspace.&lt;/P&gt;&lt;P&gt;// See &lt;A href="https://registry.terraform.io/providers/databricks/databricks/latest/docs#authentication" alt="https://registry.terraform.io/providers/databricks/databricks/latest/docs#authentication" target="_blank"&gt;https://registry.terraform.io/providers/databricks/databricks/latest/docs#authentication&lt;/A&gt;&lt;/P&gt;&lt;P&gt;provider "databricks" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;alias&amp;nbsp;&amp;nbsp;&amp;nbsp;= "mws"&lt;/P&gt;&lt;P&gt;&amp;nbsp;host&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "&lt;A href="https://accounts.cloud.databricks.com" alt="https://accounts.cloud.databricks.com" target="_blank"&gt;https://accounts.cloud.databricks.com&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;username = var.databricks_account_username&lt;/P&gt;&lt;P&gt;&amp;nbsp;password = var.databricks_account_password&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data "databricks_aws_assume_role_policy" "this" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;external_id = var.databricks_account_id&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "aws_iam_role" "cross_account_role" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "test-crossaccount"&lt;/P&gt;&lt;P&gt;&amp;nbsp;assume_role_policy = data.databricks_aws_assume_role_policy.this.json&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data "databricks_aws_crossaccount_policy" "this" {&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "aws_iam_role_policy" "this" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;name&amp;nbsp;&amp;nbsp;= "test-policy"&lt;/P&gt;&lt;P&gt;&amp;nbsp;role&amp;nbsp;&amp;nbsp;= aws_iam_role.cross_account_role.id&lt;/P&gt;&lt;P&gt;&amp;nbsp;policy = data.databricks_aws_crossaccount_policy.this.json&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "databricks_mws_credentials" "this" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;provider&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= databricks.mws&lt;/P&gt;&lt;P&gt;&amp;nbsp;account_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= var.databricks_account_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;credentials_name = "test-creds"&lt;/P&gt;&lt;P&gt;&amp;nbsp;role_arn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= aws_iam_role.cross_account_role.arn&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 15:21:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-cannot-create-mws-credentials-cannot-complete-request-user/m-p/31734#M23114</guid>
      <dc:creator>Andrei_Radulesc</dc:creator>
      <dc:date>2022-09-14T15:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error: cannot create mws credentials: Cannot complete request; user is unauthenticated</title>
      <link>https://community.databricks.com/t5/data-engineering/error-cannot-create-mws-credentials-cannot-complete-request-user/m-p/31735#M23115</link>
      <description>&lt;P&gt;Update: after changing the account password, the error went away. There seems to have been a temporary glitch in Databricks preventing Terraform from working with the old password - because the old password was correctly set up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, now I have a workaround, given that changing the password solved the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 18:42:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-cannot-create-mws-credentials-cannot-complete-request-user/m-p/31735#M23115</guid>
      <dc:creator>Andrei_Radulesc</dc:creator>
      <dc:date>2022-09-14T18:42:57Z</dc:date>
    </item>
  </channel>
</rss>

