issue related to Cluster Policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2024 07:13 AM
Hello Databricks Community,
I am currently working on creating a Terraform script to provision clusters in Databricks. However, I've noticed that by default, the clusters created using Terraform have the policy set to "Unrestricted."
I would like to configure my Terraform script so that the default cluster policy is either "Personal Compute" or "Shared" instead of "Unrestricted." Could you please advise on the best approach to achieve this?
Thank you for your assistance.
#unitycatalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2024 09:14 AM
Hello, many thanks for your question, on the cluster creation template there is an optional setting called policy_id, this id can be retrieved from the UI, if you go under Compute > Policies > Select the policy you want to set.
By default if the user you are using to create the cluster has Unrestricted cluster creation entitlement then all clusters will be created with it.
Source: https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/cluster#policy_i...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 07:12 AM
thank you so much for your help, I have a question regarding the use of policy IDs in the configuration of Databricks clusters. I'm curious to know whether policy IDs are static or subject to change. Specifically, I'm interested in understanding if policy IDs remain constant once assigned or if they can change over time. Could you please clarify this for me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 09:12 AM
The policy id will persist, it is tied to the configuration you have set, even if changing the configuration of a custom policy it will persist with same policy id