databricks / terraform-provider-databricks

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

[ISSUE] Panic when destroying a workspace with databricks_compliance_security_profile_workspace_setting #3675

Open ludovicc opened 2 weeks ago

ludovicc commented 2 weeks ago

Configuration

resource "databricks_compliance_security_profile_workspace_setting" "compliance" {
  provider = databricks.workspace

  compliance_security_profile_workspace {
    is_enabled           = length(var.compliance_security_profile) > 0
    compliance_standards = var.compliance_security_profile
  }
}

Expected Behavior

I should be able to destroy a workspace with a compliance security profile.

Actual Behavior

│ Error: cannot delete compliance security profile workspace setting: panic: runtime error: invalid memory address or nil pointer dereference

Steps to Reproduce

  1. terraform plan -destroy
  2. terraform apply

Terraform and provider versions

Terraform v1.7.3

Is it a regression?

Debug Output

Important Factoids

Would you like to implement a fix?

alexott commented 2 weeks ago

what is the provider version? please provide the stacktrace and debug log.

ludovicc commented 2 weeks ago

Provider databricks/databricks version: 1.47.0

There was no stack trace, and I did not enable the debug log. I cannot repeat the operation as it was in a production environment.

ludovicc commented 2 weeks ago

Another important provider : hashicorp/azurerm version = "3.107.0"