Since it is now possible to tag serverless clusters for notebook, job, and dlt using budget policies, it would be nice to be able to provision those using terraform (similar to the cluster policies). Currently, they need to be set by workspace admins in the Compute section of the Workspace Settings.
Attempted Solutions
I tried to use the databricks_budget resource, but this is something different and intended for actual budgets (not policies for tagging) on the account level.
Proposal
The changes could look something like this:
databricks_budget_policy
resource "databricks_budget_policy" "example" {
name = "Example Policy"
tag { # At least one tag is required
key = "foo"
value = "bar"
}
tag {
key = "baz"
value = "qux"
}
}
Use-cases
Since it is now possible to tag serverless clusters for notebook, job, and dlt using budget policies, it would be nice to be able to provision those using terraform (similar to the cluster policies). Currently, they need to be set by workspace admins in the Compute section of the Workspace Settings.
Attempted Solutions
I tried to use the
databricks_budget
resource, but this is something different and intended for actual budgets (not policies for tagging) on the account level.Proposal
The changes could look something like this:
databricks_budget_policy
databricks_permission
References