Skip to content

Commit 28cbf48

Browse files
authored
Document & export databricks_workspace_conf parameters for legacy init scripts (#2280)
given the recent advisory, there are asks for disabling the legacy global & named cluster init scripts via Terraform. This PR documents them, and also add to the exporter
1 parent 7ba5258 commit 28cbf48

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/resources/workspace_conf.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Allows specification of custom configuration properties for expert usage:
1414
* `enableIpAccessLists` - enables the use of [databricks_ip_access_list](ip_access_list.md) resources
1515
* `maxTokenLifetimeDays` - (string) Maximum token lifetime of new tokens in days, as an integer. If zero, new tokens are permitted to have no lifetime limit. Negative numbers are unsupported. **WARNING:** This limit only applies to new tokens, so there may be tokens with lifetimes longer than this value, including unlimited lifetime. Such tokens may have been created before the current maximum token lifetime was set.
1616
* `enableTokensConfig` - (boolean) Enable or disable personal access tokens for this workspace.
17+
* `enableDeprecatedClusterNamedInitScripts` - (boolean) Enable or disable [legacy cluster-named init scripts](https://docs.databricks.com/clusters/init-scripts.html#disable-legacy-cluster-named-init-scripts-for-a-workspace) for this workspace.
18+
* `enableDeprecatedGlobalInitScripts` - (boolean) Enable or disable [legacy global init scripts](https://docs.databricks.com/clusters/init-scripts.html#migrate-legacy-scripts) for this workspace.
1719

1820
```hcl
1921
resource "databricks_workspace_conf" "this" {

exporter/context.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ var workspaceConfKeys = map[string]any{
110110
"maxTokenLifetimeDays": 0,
111111
"maxUserInactiveDays": 0,
112112
"storeInteractiveNotebookResultsInCustomerAccount": false,
113+
"enableDeprecatedClusterNamedInitScripts": false,
114+
"enableDeprecatedGlobalInitScripts": false,
113115
}
114116

115117
func newImportContext(c *common.DatabricksClient) *importContext {

0 commit comments

Comments
 (0)