@@ -6,8 +6,7 @@ This module provides an ability for Databricks Workspace configuration and Resou
661 . Default Shared Autoscaling cluster
772 . ADLS Gen2 Mount
883 . Secret scope and its secrets
9- 4 . Cluster policies
10- 5 . Users for Standard SKU Worspaces
9+ 4 . Users for Standard SKU Worspaces
1110
1211``` hcl
1312# Prerequisite resources
@@ -38,36 +37,24 @@ data "azurerm_storage_account" "example" {
3837module "databricks_runtime_core" {
3938 source = "data-platform-hq/databricks-runtime/databricks"
4039
41- sku = "premium "
40+ sku = "standard "
4241 workspace_id = data.azurerm_databricks_workspace.example.workspace_id
4342
44- # This parameter only used when workspace wku equals 'standard'
43+ # Databricks user
4544 users = ["user1", "user2"]
4645
46+ # Default cluster parameters
47+ custom_default_cluster_name = "databricks_example_custer"
48+ cluster_nodes_availability = "SPOT_AZURE" # it required to increase Regional Spot quotas
49+ cluster_log_conf_destination = "dbfs:/cluster-logs"
50+
4751 # Parameters of Service principal used for ADLS mount
4852 # Imports App ID and Secret of Service Principal from target Key Vault
4953 key_vault_id = data.azurerm_key_vault.example.id
5054 sp_client_id_secret_name = "sp-client-id" # secret's name that stores Service Principal App ID
5155 sp_key_secret_name = "sp-key" # secret's name that stores Service Principal Secret Key
5256 tenant_id_secret_name = "infra-arm-tenant-id" # secret's name that stores tenant id value
5357
54- # Default cluster parameters
55- custom_default_cluster_name = "databricks_example_custer"
56- cluster_nodes_availability = "SPOT_AZURE" # it required to increase Regional Spot quotas
57- cluster_log_conf_destination = "dbfs:/cluster-logs"
58- custom_cluster_policies = [{
59- name = "custom_policy_1",
60- assigned = true,
61- can_use = null,
62- definition = {
63- "autoscale.max_workers": {
64- "type": "range",
65- "maxValue": 3,
66- "defaultValue": 2
67- },
68- }
69- }]
70-
7158 # Additional Secret Scope
7259 secret_scope = [{
7360 scope_name = "extra-scope"
0 commit comments