โ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:
โ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.
โ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!
โ10-06-2021 03:39 PM
Hi @Nicole Wongโ , can you try below options:
resource "databricks_permissions" "token_usage" {
authorization = "tokens"
access_control {
group_name = "<groupname>"
permission_level = "CAN_USE"
}
}
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"
}'
โ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.
โ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?
โ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.
โ06-27-2022 09:45 PM
Any update for "enable Table access control" from TF?
โ06-30-2022 10:56 AM
"Table access control" workspace config is not supported via Databricks Terraform provider.
โ07-05-2022 09:26 PM
okay. that is sad ๐
โ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.
โ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.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group