When managing the Databricks platform, I always prefer code over click-ops. But in the last few years I always found it hard to find the #Terraform code to do so if it already exist at all.
Last week, I came upon a new terraform resource block called databricks_workspace_setting_v2. With this you can finally set settings like sql_results_download via code:
resource “databricks_workspace_setting_v2” “this” {
name= “sql_results_download”
boolean_val={
value=false
}
}
For detailed information on how to use the module see here: databricks_workspace_setting_v2 | Resources | databricks/databricks | Terraform | Terraform Registry
Next to that I Also like that you can use it for things where you needed separate resources for, like disable_legacy_dbfs_setting. With as big benefit that it also overwrites the setting again if an admin changes it via the UI portal.
For the original LinkedIn post click here.