2

When I create a Databricks Cluster Policy from the UI, I can choose a Policy Family. This Policy Family let's us have a base template JSON, which we can then override by passing custom JSON tags of our own. It works fine.

When I create a similar policy from Terraform using databricks_cluster_policy resource type, I have to pass the full JSON with all the tags. How can I choose a Policy Family from Terraform script, so that I dont have to pass a large JSON and I can only pass the few JSON tags that I need to customize the policy with?

sumon c
  • 739
  • 2
  • 10
  • 18
  • Can you provide the code that you tried?Are you trying to create azure databricks cluster policy – kavyaS Feb 21 '23 at 09:28

1 Answers1

0

Cluster Policy Families aren't supported yet in the Databricks Terraform provider (most probably after migration to Go SDK is finished). Currently the workaround could be to pull definition from another cluster policy using the databricks_cluster_policy data source (doc) and merge your customizations into it.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132