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

[ISSUE] Issue with `databricks_budget` resource

Open portoedu opened this issue 8 months ago • 1 comments
trafficstars

Expected Behavior

To change the tag in the current databricks budget.

Actual Behavior

Changing a tag causes the budget ID to change as well and as a result terraform cannot find the old budget with the old ID and we get an error in the apply. The resource ID in the terraform state is the account ID + Budget ID, the budget ID should not be changed after a terraform apply.

Steps to Reproduce

  1. Create a databricks budget using terraform
  2. Change the tag.

Terraform and provider versions

terraform {
  required_providers {
    databricks = {
      source  = "databricks/databricks"
      version = "~> 1.69.0"
    }
  }
}

Is it a regression?

No

portoedu avatar Mar 05 '25 21:03 portoedu

Budgets should be "delete & recreate" ops rather than modified when the scope changes

istairbn avatar May 30 '25 13:05 istairbn

Please collect the debug logs - budgets have Update API.

alexott avatar Jul 04 '25 09:07 alexott