<?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 Re: Having an issue assigning databricks_metastore with terraform provider in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/39393#M1135</link>
    <description>&lt;P&gt;The error message you received indicates that the Databricks workspace region is different from the region where the metastore is located. The message shows that the workspace region is "Unknown", which means that Databricks is unable to determine the region for the workspace.&lt;/P&gt;&lt;P&gt;To resolve this issue, you can explicitly set the Databricks workspace region in your Terraform configuration. To do this, you can add the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;region&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter to your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;databricks.created_workspace&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;provider block, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;text&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;provider&amp;nbsp;"databricks"&amp;nbsp;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;region&amp;nbsp;=&amp;nbsp;var.region&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;#&amp;nbsp;...&amp;nbsp;other&amp;nbsp;provider&amp;nbsp;configuration&amp;nbsp;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Make sure to populate the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;region&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;variable with the region where your Databricks workspace is hosted. You can also try to specify the region in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;databricks.created_workspace&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;provider block directly, without using a variable.&lt;/P&gt;&lt;P&gt;Once you've added the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;region&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter to your provider block, rerun your Terraform deployment to create and assign the Databricks metastore. With the region parameter set correctly, you should be able to create a metastore assignment successfully.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2023 16:20:04 GMT</pubDate>
    <dc:creator>youssefmrini</dc:creator>
    <dc:date>2023-08-08T16:20:04Z</dc:date>
    <item>
      <title>Having an issue assigning databricks_metastore with terraform provider</title>
      <link>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/12244#M475</link>
      <description>&lt;P&gt;I am trying to assign my databricks_metastore on terraform and I get the following error back as an output `Error: cannot create metastore assignment: Workspace is not in the same region as metastore. Workspace region: Unknown, Metastore region: us-east-1`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Snippet &lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;resource "databricks_metastore" "metastore" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;provider&amp;nbsp;&amp;nbsp;&amp;nbsp;= databricks.created_workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "root-metastore"&lt;/P&gt;&lt;P&gt;&amp;nbsp;storage_root&amp;nbsp;= "s3://${aws_s3_bucket.databricks_bucket.id}/metastore"&lt;/P&gt;&lt;P&gt;&amp;nbsp;force_destroy = true&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "databricks_metastore_data_access" "this" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;provider&amp;nbsp;&amp;nbsp;= databricks.created_workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;metastore_id = databricks_metastore.&lt;A href="https://metastore.id" alt="https://metastore.id" target="_blank"&gt;metastore.id&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= aws_iam_role.databricks_role.name&lt;/P&gt;&lt;P&gt;&amp;nbsp;aws_iam_role { role_arn = aws_iam_role.databricks_role.arn }&lt;/P&gt;&lt;P&gt;depends_on&amp;nbsp;= [databricks_metastore_assignment.this]&lt;/P&gt;&lt;P&gt;&amp;nbsp;is_default = true&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "databricks_metastore_assignment" "this" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;provider&amp;nbsp;&amp;nbsp;= databricks.created_workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;metastore_id = databricks_metastore.&lt;A href="https://metastore.id" alt="https://metastore.id" target="_blank"&gt;metastore.id&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;workspace_id = var.default_metastore_workspace_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;depends_on&amp;nbsp;= [databricks_metastore.metastore]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see here there's definitely a value set for databricks_mws_workspaces&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;resource "databricks_mws_workspaces" "this" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;depends_on&amp;nbsp;&amp;nbsp;= [databricks_mws_networks.this]&lt;/P&gt;&lt;P&gt;&amp;nbsp;provider&amp;nbsp;&amp;nbsp;&amp;nbsp;= databricks.mws&lt;/P&gt;&lt;P&gt;&amp;nbsp;account_id&amp;nbsp;&amp;nbsp;= var.databricks_account_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;workspace_name = var.prefix&lt;/P&gt;&lt;P&gt;&amp;nbsp;aws_region&amp;nbsp;&amp;nbsp;= var.region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;credentials_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= databricks_mws_credentials.this.credentials_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;storage_configuration_id = databricks_mws_storage_configurations.this.storage_configuration_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;network_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= databricks_mws_networks.this.network_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;token {}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;terraform.tfvars - aws_region = "us-east-1" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While checking the UI it does state both workspace and metastore are both us-east-1 yet this issue still occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can set it manually but would like to automate it using terraform.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 17:31:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/12244#M475</guid>
      <dc:creator>Awakz</dc:creator>
      <dc:date>2023-01-12T17:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Having an issue assigning databricks_metastore with terraform provider</title>
      <link>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/12246#M477</link>
      <description>&lt;P&gt;Blessings debayan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've successfully managed doing this through the UI but it failes on terraform.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 22:13:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/12246#M477</guid>
      <dc:creator>Awakz</dc:creator>
      <dc:date>2023-01-12T22:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Having an issue assigning databricks_metastore with terraform provider</title>
      <link>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/12245#M476</link>
      <description>&lt;P&gt;Hi, This can be a bug, could you please confirm if the same happens when you try to do it through the UI  or notebook? &lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 21:53:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/12245#M476</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-01-12T21:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Having an issue assigning databricks_metastore with terraform provider</title>
      <link>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/39115#M1127</link>
      <description>&lt;P&gt;There is an open issue in the Databricks terraform provider&amp;nbsp;&lt;A href="https://github.com/databricks/terraform-provider-databricks/issues/2513" target="_blank"&gt;https://github.com/databricks/terraform-provider-databricks/issues/2513&lt;/A&gt;&amp;nbsp;and someone found a workaround and post in this comment&amp;nbsp;&lt;A href="https://github.com/databricks/terraform-provider-databricks/issues/2513#issuecomment-1653764528" target="_blank"&gt;https://github.com/databricks/terraform-provider-databricks/issues/2513#issuecomment-1653764528&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 14:14:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/39115#M1127</guid>
      <dc:creator>lucasvieira</dc:creator>
      <dc:date>2023-08-04T14:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Having an issue assigning databricks_metastore with terraform provider</title>
      <link>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/39393#M1135</link>
      <description>&lt;P&gt;The error message you received indicates that the Databricks workspace region is different from the region where the metastore is located. The message shows that the workspace region is "Unknown", which means that Databricks is unable to determine the region for the workspace.&lt;/P&gt;&lt;P&gt;To resolve this issue, you can explicitly set the Databricks workspace region in your Terraform configuration. To do this, you can add the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;region&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter to your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;databricks.created_workspace&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;provider block, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;text&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;provider&amp;nbsp;"databricks"&amp;nbsp;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;region&amp;nbsp;=&amp;nbsp;var.region&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;#&amp;nbsp;...&amp;nbsp;other&amp;nbsp;provider&amp;nbsp;configuration&amp;nbsp;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Make sure to populate the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;region&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;variable with the region where your Databricks workspace is hosted. You can also try to specify the region in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;databricks.created_workspace&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;provider block directly, without using a variable.&lt;/P&gt;&lt;P&gt;Once you've added the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;region&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter to your provider block, rerun your Terraform deployment to create and assign the Databricks metastore. With the region parameter set correctly, you should be able to create a metastore assignment successfully.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 16:20:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/having-an-issue-assigning-databricks-metastore-with-terraform/m-p/39393#M1135</guid>
      <dc:creator>youssefmrini</dc:creator>
      <dc:date>2023-08-08T16:20:04Z</dc:date>
    </item>
  </channel>
</rss>

