File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,42 @@ resource "databricks_cluster" "cluster" {
35
35
}
36
36
}
37
37
38
+ dynamic "init_scripts" {
39
+ for_each = each. value . init_scripts_workspace != null ? each. value . init_scripts_workspace : []
40
+ content {
41
+ workspace {
42
+ destination = init_scripts. value
43
+ }
44
+ }
45
+ }
46
+
47
+ dynamic "init_scripts" {
48
+ for_each = each. value . init_scripts_volumes != null ? each. value . init_scripts_volumes : []
49
+ content {
50
+ volumes {
51
+ destination = init_scripts. value
52
+ }
53
+ }
54
+ }
55
+
56
+ dynamic "init_scripts" {
57
+ for_each = each. value . init_scripts_dbfs != null ? each. value . init_scripts_dbfs : []
58
+ content {
59
+ dbfs {
60
+ destination = init_scripts. value
61
+ }
62
+ }
63
+ }
64
+
65
+ dynamic "init_scripts" {
66
+ for_each = each. value . init_scripts_abfss != null ? each. value . init_scripts_abfss : []
67
+ content {
68
+ abfss {
69
+ destination = init_scripts. value
70
+ }
71
+ }
72
+ }
73
+
38
74
dynamic "library" {
39
75
for_each = each. value . pypi_library_repository
40
76
content {
Original file line number Diff line number Diff line change @@ -161,6 +161,10 @@ variable "clusters" {
161
161
first_on_demand = optional (number , 0 )
162
162
spot_bid_max_price = optional (number , 1 )
163
163
cluster_log_conf_destination = optional (string , null )
164
+ init_scripts_workspace = optional (set (string ), [])
165
+ init_scripts_volumes = optional (set (string ), [])
166
+ init_scripts_dbfs = optional (set (string ), [])
167
+ init_scripts_abfss = optional (set (string ), [])
164
168
single_user_name = optional (string , null )
165
169
permissions = optional (set (object ({
166
170
group_name = string
You can’t perform that action at this time.
0 commit comments