Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] Issue with databricks_budget_policy resource #4600

Open
jyrr opened this issue Mar 25, 2025 · 1 comment
Open

[ISSUE] Issue with databricks_budget_policy resource #4600

jyrr opened this issue Mar 25, 2025 · 1 comment
Labels
platform bug this issue cannot be fixed or worked around in scope of this plugin. Please create a support case. Triaged The issue has been reviewed. Issues without a “Triaged” label require triage/review.

Comments

@jyrr
Copy link

jyrr commented Mar 25, 2025

Configuration

resource "databricks_budget_policy" "my_budget_policy" {
  provider    = databricks.account
  for_each    = toset(["policy1", "policy2", "policy3", "policy4", "policy5", "policy6", "policy7", "policy8", "policy9", "policy10"])
  policy_name = "bp_${each.value}"
  custom_tags = [{
    key   = "mytag"
    value = each.value
  }]
}

Expected Behavior

Create ten budget policies.

Actual Behavior

Creates some and then errors out with
Duplicate policy name found. although there are no duplicate names. The plan looks absolutely fine with no duplicate policy names.

Steps to Reproduce

terraform plan --> all looks good
terraform apply --> a number of policies are made and are visible in Databricks, but then it errors out saying Duplicate policy name found. for the remainder of the policy resources to be made.

Terraform and provider versions

Terraform v1.7.3
on windows_amd64

  • provider registry.terraform.io/databricks/databricks v1.70.0

Is it a regression?

No

@nkvuong
Copy link
Contributor

nkvuong commented Mar 27, 2025

@jyrr this is a backend issue with budget policies where multiple create in parallel gets throttled - this is being looked at, but for now you would need to re-run the terraform apply a couple of times for this to succeed

@nkvuong nkvuong added platform bug this issue cannot be fixed or worked around in scope of this plugin. Please create a support case. Triaged The issue has been reviewed. Issues without a “Triaged” label require triage/review. labels Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform bug this issue cannot be fixed or worked around in scope of this plugin. Please create a support case. Triaged The issue has been reviewed. Issues without a “Triaged” label require triage/review.
Projects
None yet
Development

No branches or pull requests

2 participants