File tree 11 files changed +79
-0
lines changed
3_standard_cluster_with_auto_scaling
4_cluster_with_new_cluster_policy_and_permissions
5_cluster_with_existing_cluster_policy
6_cluster_with_instance_pool_and_permissions
7_cluster_with_instance_profile
1_job_on_new_cluster_with_new_and_existing_notebooks
2_job_on_existing_cluster_with_new_notebooks
3_job_on_existing_cluster_with_existing_notebooks 11 files changed +79
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ output "cluster_id" {
3
3
value = module. databricks_workspace_management . cluster_id
4
4
}
5
5
6
+ output "standalone_cluster_id" {
7
+ description = " databricks standalone cluster id"
8
+ value = module. databricks_workspace_management . single_node_cluster_id
9
+ }
10
+
6
11
output "databricks_secret_acl" {
7
12
description = " databricks secret acl"
8
13
value = module. databricks_workspace_management . databricks_secret_acl
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ output "cluster_id" {
3
3
value = module. databricks_workspace_management . cluster_id
4
4
}
5
5
6
+ output "standalone_cluster_id" {
7
+ description = " databricks standalone cluster id"
8
+ value = module. databricks_workspace_management . single_node_cluster_id
9
+ }
10
+
6
11
output "databricks_secret_acl" {
7
12
description = " databricks secret acl"
8
13
value = module. databricks_workspace_management . databricks_secret_acl
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ output "cluster_id" {
3
3
value = module. databricks_workspace_management . cluster_id
4
4
}
5
5
6
+ output "standalone_cluster_id" {
7
+ description = " databricks standalone cluster id"
8
+ value = module. databricks_workspace_management . single_node_cluster_id
9
+ }
10
+
6
11
output "databricks_secret_acl" {
7
12
description = " databricks secret acl"
8
13
value = module. databricks_workspace_management . databricks_secret_acl
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ output "cluster_id" {
3
3
value = module. databricks_workspace_management . cluster_id
4
4
}
5
5
6
+ output "standalone_cluster_id" {
7
+ description = " databricks standalone cluster id"
8
+ value = module. databricks_workspace_management . single_node_cluster_id
9
+ }
10
+
6
11
output "databricks_secret_acl" {
7
12
description = " databricks secret acl"
8
13
value = module. databricks_workspace_management . databricks_secret_acl
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ output "cluster_id" {
3
3
value = module. databricks_workspace_management . cluster_id
4
4
}
5
5
6
+ output "standalone_cluster_id" {
7
+ description = " databricks standalone cluster id"
8
+ value = module. databricks_workspace_management . single_node_cluster_id
9
+ }
10
+
6
11
output "databricks_secret_acl" {
7
12
description = " databricks secret acl"
8
13
value = module. databricks_workspace_management . databricks_secret_acl
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ output "cluster_id" {
3
3
value = module. databricks_workspace_management . cluster_id
4
4
}
5
5
6
+ output "standalone_cluster_id" {
7
+ description = " databricks standalone cluster id"
8
+ value = module. databricks_workspace_management . single_node_cluster_id
9
+ }
10
+
6
11
output "databricks_secret_acl" {
7
12
description = " databricks secret acl"
8
13
value = module. databricks_workspace_management . databricks_secret_acl
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ output "cluster_id" {
3
3
value = module. databricks_workspace_management . cluster_id
4
4
}
5
5
6
+ output "standalone_cluster_id" {
7
+ description = " databricks standalone cluster id"
8
+ value = module. databricks_workspace_management . single_node_cluster_id
9
+ }
10
+
6
11
output "databricks_secret_acl" {
7
12
description = " databricks secret acl"
8
13
value = module. databricks_workspace_management . databricks_secret_acl
Original file line number Diff line number Diff line change
1
+ output "cluster_id" {
2
+ description = " databricks cluster id"
3
+ value = module. databricks_workspace_management . cluster_id
4
+ }
5
+
6
+ output "standalone_cluster_id" {
7
+ description = " databricks standalone cluster id"
8
+ value = module. databricks_workspace_management . single_node_cluster_id
9
+ }
10
+
1
11
output "notebook_url" {
2
12
description = " databricks notebook url"
3
13
value = module. databricks_workspace_management . notebook_url
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ output "notebook_url" {
2
2
description = " databricks notebook url"
3
3
value = module. databricks_workspace_management . notebook_url
4
4
}
5
+
5
6
output "new_cluster_new_job_new_notebooks_job" {
6
7
description = " databricks job url"
7
8
value = module. databricks_workspace_management . new_cluster_new_job_new_notebooks_job
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ output "notebook_url" {
2
2
description = " databricks notebook url"
3
3
value = module. databricks_workspace_management . notebook_url
4
4
}
5
+
5
6
output "new_cluster_new_job_new_notebooks_job" {
6
7
description = " databricks job url"
7
8
value = module. databricks_workspace_management . new_cluster_new_job_new_notebooks_job
Original file line number Diff line number Diff line change @@ -97,6 +97,38 @@ resource "databricks_permissions" "existing_cluster_new_job_new_notebooks" {
97
97
}
98
98
}
99
99
# ------------------------------------------------
100
+ # 3. NEW CLUSTER WITH EXITING NOTEBOOKS
101
+ # ------------------------------------------------
102
+ resource "databricks_permissions" "new_cluster_new_job_existing_notebooks" {
103
+ for_each = (var. jobs_access_control != null && var. deploy_jobs == true && var. cluster_id == null && var. remote_notebooks != null ) ? databricks_job. new_cluster_new_job_existing_notebooks : {}
104
+
105
+ job_id = each. value . id
106
+
107
+ dynamic "access_control" {
108
+ for_each = var. jobs_access_control != null ? var. jobs_access_control : []
109
+ content {
110
+ group_name = access_control. value . group_name
111
+ permission_level = access_control. value . permission_level
112
+ }
113
+ }
114
+ }
115
+ # ------------------------------------------------
116
+ # 4. EXISTING CLUSTER WITH EXITING NOTEBOOKS
117
+ # ------------------------------------------------
118
+ resource "databricks_permissions" "existing_cluster_new_job_existing_notebooks" {
119
+ for_each = (var. jobs_access_control != null && var. deploy_jobs == true && var. cluster_id != null && var. remote_notebooks != null ) ? databricks_job. existing_cluster_new_job_existing_notebooks : {}
120
+
121
+ job_id = each. value . id
122
+
123
+ dynamic "access_control" {
124
+ for_each = var. jobs_access_control != null ? var. jobs_access_control : []
125
+ content {
126
+ group_name = access_control. value . group_name
127
+ permission_level = access_control. value . permission_level
128
+ }
129
+ }
130
+ }
131
+ # ------------------------------------------------
100
132
# Notebooks Permissions
101
133
# ------------------------------------------------
102
134
resource "databricks_permissions" "notebook" {
You can’t perform that action at this time.
0 commit comments