<?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 Failing Cluster Creation in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/failing-cluster-creation/m-p/75960#M1920</link>
    <description>&lt;P&gt;I'm encountering an issue with my Terraform code for creating a cluster. The terraform plan command runs successfully and shows the correct changes, but the after that fails with errors. Here are the details:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jv_v_0-1719500677324.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8983iCA39EF1593853A4A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="jv_v_0-1719500677324.png" alt="jv_v_0-1719500677324.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jv_v_1-1719500696573.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8984i64B33361FBF7BA93/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="jv_v_1-1719500696573.png" alt="jv_v_1-1719500696573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Terraform Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;terraform {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;required_providers {&lt;BR /&gt;azurerm = {&lt;BR /&gt;source = "hashicorp/azurerm"&lt;BR /&gt;}&lt;BR /&gt;databricks = {&lt;BR /&gt;source = "databricks/databricks"&lt;BR /&gt;version = "1.46.0"&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;provider "azurerm" {&lt;BR /&gt;skip_provider_registration="true"&lt;BR /&gt;features {}&lt;BR /&gt;subscription_id = var.subscription_id&lt;BR /&gt;client_id = var.client_id&lt;BR /&gt;client_secret = var.client_secret&lt;BR /&gt;tenant_id = var.tenant_id&lt;BR /&gt;}&lt;BR /&gt;locals {&lt;BR /&gt;databricks_workspace_host = module.metastore_and_users.databricks_workspace_host&lt;BR /&gt;workspace_id = module.metastore_and_users.databricks_workspace_id&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Provider for databricks account&lt;BR /&gt;provider "databricks" {&lt;BR /&gt;alias = "azure_account"&lt;BR /&gt;host = "&lt;A href="https://accounts.azuredatabricks.net" target="_blank" rel="noopener"&gt;https://accounts.azuredatabricks.net&lt;/A&gt;"&lt;BR /&gt;account_id = var.account_id&lt;BR /&gt;client_id = var.client_id&lt;BR /&gt;client_secret = var.db_client_secret&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Provider for databricks workspace&lt;BR /&gt;provider "databricks" {&lt;BR /&gt;alias = "Workspace"&lt;BR /&gt;host = local.databricks_workspace_host&lt;BR /&gt;client_id = var.client_id&lt;BR /&gt;client_secret = var.db_client_secret&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//Task014 Creating the cluster with the "smallest" amount&lt;/P&gt;&lt;P&gt;data "databricks_node_type" "smallest" {&lt;BR /&gt;local_disk = true&lt;BR /&gt;}&lt;BR /&gt;#defined policy&lt;BR /&gt;data "databricks_cluster_policy" "personal" {&lt;BR /&gt;name = "Personal Compute"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;# Long Term Support (LTS) version.&lt;BR /&gt;data "databricks_spark_version" "latest_lts" {&lt;BR /&gt;long_term_support = true&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "databricks_cluster" "mycluster" {&lt;BR /&gt;provider = databricks.Workspace&lt;BR /&gt;cluster_name = var.cluster_name&lt;BR /&gt;policy_id = data.databricks_cluster_policy.personal.id&lt;BR /&gt;node_type_id = var.node_type_id # Set the appropriate node type ID here&lt;BR /&gt;spark_version = data.databricks_spark_version.latest_lts.id&lt;BR /&gt;autotermination_minutes = var.cluster_autotermination_minutes&lt;BR /&gt;num_workers = var.cluster_num_workers&lt;BR /&gt;data_security_mode = var.data_security_mode&lt;BR /&gt;autoscale {&lt;BR /&gt;min_workers = var.min_workers&lt;BR /&gt;max_workers = var.max_workers&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;spark_conf = {&lt;BR /&gt;"spark.databricks.catalog.enabled" = "true"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me understand why the terraform Plan&amp;nbsp;is failing after a successful plan? Any suggestions for how to debug or fix this issue would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 15:11:40 GMT</pubDate>
    <dc:creator>jv_v</dc:creator>
    <dc:date>2024-06-27T15:11:40Z</dc:date>
    <item>
      <title>Failing Cluster Creation</title>
      <link>https://community.databricks.com/t5/data-governance/failing-cluster-creation/m-p/75960#M1920</link>
      <description>&lt;P&gt;I'm encountering an issue with my Terraform code for creating a cluster. The terraform plan command runs successfully and shows the correct changes, but the after that fails with errors. Here are the details:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jv_v_0-1719500677324.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8983iCA39EF1593853A4A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="jv_v_0-1719500677324.png" alt="jv_v_0-1719500677324.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jv_v_1-1719500696573.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8984i64B33361FBF7BA93/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="jv_v_1-1719500696573.png" alt="jv_v_1-1719500696573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Terraform Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;terraform {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;required_providers {&lt;BR /&gt;azurerm = {&lt;BR /&gt;source = "hashicorp/azurerm"&lt;BR /&gt;}&lt;BR /&gt;databricks = {&lt;BR /&gt;source = "databricks/databricks"&lt;BR /&gt;version = "1.46.0"&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;provider "azurerm" {&lt;BR /&gt;skip_provider_registration="true"&lt;BR /&gt;features {}&lt;BR /&gt;subscription_id = var.subscription_id&lt;BR /&gt;client_id = var.client_id&lt;BR /&gt;client_secret = var.client_secret&lt;BR /&gt;tenant_id = var.tenant_id&lt;BR /&gt;}&lt;BR /&gt;locals {&lt;BR /&gt;databricks_workspace_host = module.metastore_and_users.databricks_workspace_host&lt;BR /&gt;workspace_id = module.metastore_and_users.databricks_workspace_id&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Provider for databricks account&lt;BR /&gt;provider "databricks" {&lt;BR /&gt;alias = "azure_account"&lt;BR /&gt;host = "&lt;A href="https://accounts.azuredatabricks.net" target="_blank" rel="noopener"&gt;https://accounts.azuredatabricks.net&lt;/A&gt;"&lt;BR /&gt;account_id = var.account_id&lt;BR /&gt;client_id = var.client_id&lt;BR /&gt;client_secret = var.db_client_secret&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Provider for databricks workspace&lt;BR /&gt;provider "databricks" {&lt;BR /&gt;alias = "Workspace"&lt;BR /&gt;host = local.databricks_workspace_host&lt;BR /&gt;client_id = var.client_id&lt;BR /&gt;client_secret = var.db_client_secret&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//Task014 Creating the cluster with the "smallest" amount&lt;/P&gt;&lt;P&gt;data "databricks_node_type" "smallest" {&lt;BR /&gt;local_disk = true&lt;BR /&gt;}&lt;BR /&gt;#defined policy&lt;BR /&gt;data "databricks_cluster_policy" "personal" {&lt;BR /&gt;name = "Personal Compute"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;# Long Term Support (LTS) version.&lt;BR /&gt;data "databricks_spark_version" "latest_lts" {&lt;BR /&gt;long_term_support = true&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "databricks_cluster" "mycluster" {&lt;BR /&gt;provider = databricks.Workspace&lt;BR /&gt;cluster_name = var.cluster_name&lt;BR /&gt;policy_id = data.databricks_cluster_policy.personal.id&lt;BR /&gt;node_type_id = var.node_type_id # Set the appropriate node type ID here&lt;BR /&gt;spark_version = data.databricks_spark_version.latest_lts.id&lt;BR /&gt;autotermination_minutes = var.cluster_autotermination_minutes&lt;BR /&gt;num_workers = var.cluster_num_workers&lt;BR /&gt;data_security_mode = var.data_security_mode&lt;BR /&gt;autoscale {&lt;BR /&gt;min_workers = var.min_workers&lt;BR /&gt;max_workers = var.max_workers&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;spark_conf = {&lt;BR /&gt;"spark.databricks.catalog.enabled" = "true"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me understand why the terraform Plan&amp;nbsp;is failing after a successful plan? Any suggestions for how to debug or fix this issue would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 15:11:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/failing-cluster-creation/m-p/75960#M1920</guid>
      <dc:creator>jv_v</dc:creator>
      <dc:date>2024-06-27T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Failing Cluster Creation</title>
      <link>https://community.databricks.com/t5/data-governance/failing-cluster-creation/m-p/76012#M1921</link>
      <description>&lt;P&gt;Are you getting two different errors?&lt;BR /&gt;default auth error usually means you you need to explicitly set the providers in either the data or resource&lt;SPAN&gt;&amp;nbsp;objects as well, or you're missing a depends_on attribute. I think for both cases it is the latter.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;&lt;BR /&gt;data "databricks_cluster_policy" "personal" {&lt;BR /&gt;&lt;STRONG&gt;depends_on = azurerm_databricks_workspace.example&lt;/STRONG&gt;&lt;BR /&gt;name = "Personal Compute"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;same goes for databricks_cluster_policy.&lt;BR /&gt;&lt;BR /&gt;Can you give this a try?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 05:43:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/failing-cluster-creation/m-p/76012#M1921</guid>
      <dc:creator>jacovangelder</dc:creator>
      <dc:date>2024-06-28T05:43:09Z</dc:date>
    </item>
  </channel>
</rss>

