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

[FEATURE] databricks_budget_policy resource for workspace-level budget policies #4180

Open
Serpinex3 opened this issue Oct 31, 2024 · 1 comment
Labels
feature New feature or request needs-api changes to Databricks Platform APIs are required

Comments

@Serpinex3
Copy link

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

resource "databricks_budget_policy" "example" {
    name = "Example Policy"

    tag { # At least one tag is required
        key = "foo"
        value = "bar"
    }

    tag {
        key = "baz"
        value = "qux"
    }
}

databricks_permission

resource "databricks_permissions" "example" {
    budget_policy_id = databricks_budget_policy.example.id

    access_control {
        user_name = "xyz"
        permission_level = "CAN_USE" # or "CAN_MANAGE"
    }
}

References

@Serpinex3 Serpinex3 added the feature New feature or request label Oct 31, 2024
@alexott alexott added the needs-api changes to Databricks Platform APIs are required label Oct 31, 2024
@alexott
Copy link
Contributor

alexott commented Oct 31, 2024

There is no API yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request needs-api changes to Databricks Platform APIs are required
Projects
None yet
Development

No branches or pull requests

2 participants