Skip to content

Commit 2fad9f3

Browse files
committed
docs: updated docs
1 parent 59a7ada commit 2fad9f3

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

README.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,42 @@ data "azurerm_databricks_workspace" "example" {
1010
resource_group_name = "example-rg"
1111
}
1212
13+
# Key Vault which contains Service Principal credentials (App ID and Secret) for mounting ADLS Gen 2
1314
data "azurerm_key_vault" "example" {
14-
name = "examplekeyvault"
15+
name = "example-key-vault"
1516
resource_group_name = "example-rg"
1617
}
1718
1819
data "azurerm_storage_account" "example" {
19-
name = "example-storage"
20+
name = "examplestorage"
2021
resource_group_name = "example-rg"
2122
}
2223
24+
provider "databricks" {
25+
alias = "main"
26+
host = data.azurerm_databricks_workspace.example.workspace_url
27+
azure_workspace_resource_id = data.azurerm_databricks_workspace.example.id
28+
}
29+
2330
module "databricks_runtime_core" {
2431
source = "data-platform-hq/databricks-runtime/databricks"
25-
version = "1.4.0"
2632
27-
sku = "standard"
28-
workspace_id = azurerm_databricks_workspace.example.workspace_id
29-
users = ["user1", "user2"]
33+
sku = "premium"
34+
workspace_id = data.azurerm_databricks_workspace.example.workspace_id
35+
36+
# This parameter only used when workspace wku equals 'standard'
37+
users = ["user1", "user2"]
3038
3139
# Parameters of Service principal used for ADLS mount
40+
# Imports App ID and Secret of Service Principal
3241
key_vault_id = data.azurerm_key_vault.example.id
3342
sp_client_id_secret_name = "sp-client-id"
3443
sp_key_secret_name = "sp-key"
3544
tenant_id_secret_name = "infra-arm-tenant-id"
3645
3746
# Default cluster parameters
3847
custom_default_cluster_name = "databricks_example_custer"
39-
cluster_nodes_availability = "SPOT_AZURE"
40-
41-
48+
cluster_nodes_availability = "SPOT_AZURE" # requires Regional Spot quotas increase
4249
cluster_log_conf_destination = "dbfs:/cluster-logs"
4350
custom_cluster_policies = [{
4451
name = "custom_policy_1",
@@ -55,9 +62,11 @@ module "databricks_runtime_core" {
5562
5663
# Additional Secret Scope
5764
secret_scope = [{
58-
scope_name = null
59-
acl = null
60-
secrets = null
65+
scope_name = "extra-scope"
66+
acl = null # Only group names are allowed. If left empty then only Worspace admins could access these keys
67+
secrets = [
68+
{ key = "secret-name", string_value = "secret-value"}
69+
]
6170
}]
6271
6372
mountpoints = {

0 commit comments

Comments
 (0)