Skip to content

Commit e38ca30

Browse files
committed
add library support
1 parent cb5fad3 commit e38ca30

File tree

1 file changed

+21
-4
lines changed
  • examples/jobs/4_job_on_existing_cluster_with_new_notebooks

1 file changed

+21
-4
lines changed

examples/jobs/4_job_on_existing_cluster_with_new_notebooks/main.tf

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ terraform {
1515

1616
module "databricks_workspace_management" {
1717
source = "../../../"
18+
1819
# ------------------------------------------------
1920
# JOB
2021
# ------------------------------------------------
2122
deploy_jobs = true
22-
cluster_id = "0824-160733-mzd2ygdp"
23+
cluster_id = "0907-052446-bike152"
2324
fixed_value = 1
2425
retry_on_timeout = false
2526
max_retries = 3
@@ -42,6 +43,15 @@ module "databricks_workspace_management" {
4243
on_success = ["demo@demo.com"]
4344
}
4445
# ------------------------------------------------
46+
# JOB ACCESS CONTROL
47+
# ------------------------------------------------
48+
jobs_access_control = [
49+
{
50+
group_name = "demo"
51+
permission_level = "CAN_MANAGE_RUN"
52+
}
53+
]
54+
# ------------------------------------------------
4555
# NOTEBOOK
4656
# ------------------------------------------------
4757
local_notebooks = [
@@ -50,12 +60,19 @@ module "databricks_workspace_management" {
5060
language = "PYTHON"
5161
local_path = "notebooks/sample1.py"
5262
path = "/Shared/demo/sample1.py"
63+
},
64+
{
65+
job_name = "local_demo_job2"
66+
local_path = "notebooks/sample2.py"
5367
}
5468
]
55-
jobs_access_control = [
69+
# ------------------------------------------------
70+
# NOTEBOOK ACCESS CONTROL
71+
# ------------------------------------------------
72+
notebooks_access_control = [
5673
{
57-
group_name = "users"
58-
permission_level = "CAN_VIEW"
74+
group_name = "demo"
75+
permission_level = "CAN_READ"
5976
}
6077
]
6178
# ------------------------------------------------

0 commit comments

Comments
 (0)