terraform-provider-databricks icon indicating copy to clipboard operation
terraform-provider-databricks copied to clipboard

Issue with Terraform Exporter Exporting Deleted Pools

Open lmallepaddi opened this issue 1 year ago • 0 comments

Issue Description:

It seems that the Terraform exporter is exporting pools that are no longer present in the workspace. We encountered an error indicating that the "pool_name" was empty. However, upon investigation, we couldn't find the "psych11" pool in the Databricks UI. It appears to be a deleted pool, and the Terraform exporter is still referencing it.

Configuration

Currently using 1.39.0 version of terraform exporter.

Error Message

Error: cannot create instance pool: 'pool_name' should contain between 1-100 characters. Name of length 0 supplied. with databricks_instance_pool.psych11, on pools.tf line 1001, in resource "databricks_instance_pool" "psych11": 1001: resource "databricks_instance_pool" "psych11"

Expected Behavior

psych11 should not be existing in the pools.tf as that pool doesn't exist in the workspace.

Actual Behavior

psych11 resource is showing up in the pools.tf and is causing a failure.

lmallepaddi avatar Apr 18 '24 13:04 lmallepaddi