databricks / terraform-provider-databricks

Databricks Terraform Provider
https://registry.terraform.io/providers/databricks/databricks/latest
Other
456 stars 393 forks source link

[ISSUE] Issue with `databricks_metastore_assignment ` resource #4211

Open cpanpalia opened 1 week ago

cpanpalia commented 1 week ago

Configuration


resource "databricks_metastore_assignment" "stage_metastore_assignment" {
  provider     = databricks.workspace
  metastore_id = data.databricks_current_metastore.uc-metastore.id
  workspace_id = databricks_mws_workspaces.this.workspace_id
}

resource "databricks_default_namespace_setting" "staging_metastore" {
  provider = databricks.workspace
  namespace {
    value = databricks_catalog.staging_catalog.name
  }
}

Expected Behavior

Databricks workspace advanced setting would have been updated with default catalog as Unity catalog

Actual Behavior

Every terraform plan shows up a delta related to uc workspace assignment

image

Steps to Reproduce

Terraform and provider versions

terraform version - 1.7.0 Databricks provider version - 1.56.0

Is it a regression?

Not sure