cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Add custom_tags and budget_policy_id support to Declarative Automation Bundle presets

browsingbeaver
New Contributor III

Declarative Automation Bundle presets currently allow common deployment configuration to be reused across resources. For enterprise platform teams, it would be valuable if presets could also support custom_tags and budget_policy_id.

This would allow organizations to centrally enforce cost allocation tagging and budget governance without repeating configuration on every cluster, apps or other resource which uses the custom_tags and budget_policy_id.

1 ACCEPTED SOLUTION

Accepted Solutions

data_pulse
Contributor

@browsingbeaver 

I did a quick bundle validation around this:

  • presets.budget_policy_id is not currently supported: strict bundle validation reports it as an unknown field.
  • budget_policy_id is valid at the individual job resource level.
  • Adding it under presets.tags only creates a tag called budget_policy_id, it does not assign the actual budget policy.

If budget_policy_id is needed as a preset-level property for centralized governance, then requesting it as a feature from Databricks makes sense.

As a workaround today, you can either:

  • define budget_policy_id on each job/pipeline resource
  • centralize that through shared bundle configuration / a Bundle Python mutator so it is injected consistently across resources.

View solution in original post

2 REPLIES 2

data_pulse
Contributor

@browsingbeaver 

I did a quick bundle validation around this:

  • presets.budget_policy_id is not currently supported: strict bundle validation reports it as an unknown field.
  • budget_policy_id is valid at the individual job resource level.
  • Adding it under presets.tags only creates a tag called budget_policy_id, it does not assign the actual budget policy.

If budget_policy_id is needed as a preset-level property for centralized governance, then requesting it as a feature from Databricks makes sense.

As a workaround today, you can either:

  • define budget_policy_id on each job/pipeline resource
  • centralize that through shared bundle configuration / a Bundle Python mutator so it is injected consistently across resources.

The funny thing about this is that if you define it at the preset level the budget_policy_id. It does get appended to the Databricks apps when deployed via the Declarative Automative Bundle. But thanks for the info I will look into the Bundle Python mutator.