โ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-22-2021 03:49 PM
Hi @ nicole.wong! My name is Kaniz, and I'm the technical moderator here. Great to meet you, and thanks for your question! Let's see if your peers on the community have an answer to your question first. Or else I will follow up with my team and get back to you soon.Thanks.
โ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!
โ09-27-2021 10:52 AM
Hi @Nicole Wongโ ,
Happy to help you.
My team shall get back to you soon with an answer.
Thank you for your patience๐ .
โ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.
โ03-07-2022 03:35 AM
Thanks @Ricardo Gasparโ for the feedback.
โ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 our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.