databricks / terraform-provider-databricks

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

[ISSUE] Issue with `databricks_metastore_data_access` resource. `is_default` is forcing replace on every `apply` #4053

Open amwill04 opened 2 hours ago

amwill04 commented 2 hours ago

Configuration

resource "databricks_metastore_data_access" "this" {
  metastore_id = databricks_metastore.this.id
  name         = aws_iam_role.metastore_data_access.name
  aws_iam_role {
    role_arn = aws_iam_role.metastore_data_access.arn
  }
  is_default = true
}

Expected Behavior

Running terraform apply multiple times does not end up with the field value is_default causing the resource to be replaced

Actual Behavior

The fact that the field storage_root_credentials_name is not being returned the following always resolves to false here

Steps to Reproduce

run `terraform apply multiple times even without any changes

Terraform and provider versions

terraform v1.9.5 databricks 1.9.3

Is it a regression?

Seems to have suddenly started . However this could potentially have been caused by changes in the sdk that this uses?

amwill04 commented 2 hours ago

Further to note - I could not replicate this on a newly created metastore within a different AWS region. This metastore was created over a year ago