- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ09-22-2021 03:46 PM
I am posting this on behalf of my customer. They are currently working on the deployment & config of their workspace on AWS via Terraform.
Is it possible to set some configs in the Admin/workspace settings via TF? According to the Terraform module, it isnโt.
The config settings we would like to automate are:
- Access Control
- enable Table access control
- Configure Personal Access Tokens to grant all users Can use access
- Cluster
- enable Cluster Container Services
- enable EBS SSD gp3
- Advanced
- enable Web terminal
- enable DBFS file browser
- Labels:
-
AWS
-
Configuration
-
Terraform
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ04-13-2023 04:17 AM
I had the same problem and couldn't find this anywhere, except in the source code for databricks-cli at PowerShell:
Hope this helps someone else too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ09-27-2021 10:08 AM
Hi @Kaniz Fatmaโ ! Following up on this question for my customer. I just recently learned that all of the config settings mentioned above can be accessed via our APIs. I'm not very familiar with Terraform, what additional information would be needed to enable TF to set those configurations via the APIs? Is this possible?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ10-06-2021 03:39 PM
Hi @Nicole Wongโ , can you try below options:
- Access Control
- enable Table access control could not find a feature flag to enable this config via TF. Will update if I could find one.
- Configure Personal Access Tokens to grant all users Can use access we can achieve this using https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs/resources/permissions#...
resource "databricks_permissions" "token_usage" {
authorization = "tokens"
access_control {
group_name = "<groupname>"
permission_level = "CAN_USE"
}
}
- Cluster
- enable Cluster Container Services can be enabled via "enableDcs" custom_config
- enable EBS SSD gp3 can be enabled via "enableGp3" custom_config
- Advanced
- enable Web terminal can be enabled via "enableWebTerminal" custom_config
- enable DBFS file browser can be enabled via "enableDbfsFileBrowser" custom_config
resource "databricks_workspace_conf" "this" {
custom_config = {
"enableWebTerminal" : true,
"enableGp3" : true,
"enableDbfsFileBrowser" : true,
"enableDcs" : true
}
}
To achieve the same via API we can use below curl:
curl --location --request PATCH 'https://test.cloud.databricks.com/api/2.0/workspace-conf' \
--header 'Authorization: Bearer REPLACE_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"enableWebTerminal": "true",
"enableGp3": "true",
"enableDbfsFileBrowser": "true",
"enableDcs": "true"
}'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ10-11-2021 09:13 AM
Thanks @Ravirahul Padmanabhanโ we are going to try it out and come back to you if there are any questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ10-29-2021 03:44 PM
Hi @Ricardo Gasparโ ,
Did Ravi's fully answered your question, would you be happy to mark their answer as best so that others can quickly find the solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ11-11-2021 11:32 AM
@Jose Gonzalezโ @Ravirahul Padmanabhanโ
It doesn't solve all the requested permissions. But this already helps for now.
Would you be able to add that example terraform to the terraform provider documentation? or is there any webpage that lists all the existing customizable configs?
It certainly would be better to be able to control this via Terraform.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ06-27-2022 09:45 PM
Any update for "enable Table access control" from TF?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ06-30-2022 10:56 AM
"Table access control" workspace config is not supported via Databricks Terraform provider.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ07-05-2022 09:26 PM
okay. that is sad ๐
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ08-10-2022 10:13 PM
Hi, can I get a full list of the latest configurable supported workspace_conf on tf, I can't find the list on tf registry site.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ04-13-2023 04:17 AM
I had the same problem and couldn't find this anywhere, except in the source code for databricks-cli at PowerShell:
Hope this helps someone else too.
![](/skins/images/97567C72181EBE789E1F0FD869E4C89B/responsive_peak/images/icon_anonymous_message.png)
![](/skins/images/97567C72181EBE789E1F0FD869E4C89B/responsive_peak/images/icon_anonymous_message.png)