Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: [ONCALL-693] Add account-level groups to default Databricks policies #550

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions databricks-default-cluster-policies/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ module "large_personal_compute_cluster_policy" {
"hidden" : false
},
})
grantees = ["CZI - Large Personal Compute"]
}

module "power_user_compute_cluster_policy" {
Expand Down Expand Up @@ -166,7 +167,7 @@ module "power_user_compute_cluster_policy" {
},
})

grantees = [local.power_user_group_name]
grantees = [local.power_user_group_name, "CZI - Power User Compute"]
}
module "job_compute_cluster_policy" {
source = "../databricks-cluster-policy"
Expand All @@ -178,7 +179,7 @@ module "job_compute_cluster_policy" {

policy_overrides = local.logging_override

grantees = [local.power_user_group_name]
grantees = [local.power_user_group_name, "CZI - Job Compute"]
}

module "small_job_compute_cluster_policy" {
Expand All @@ -197,7 +198,7 @@ module "small_job_compute_cluster_policy" {
}
})

grantees = [local.power_user_group_name]
grantees = [local.power_user_group_name, "CZI - Small Job Compute"]
}

## Fully custom policies
Expand Down Expand Up @@ -246,6 +247,7 @@ module "large_gpu_large_clusters_cluster_policy" {
"defaultValue" : "g4dn.xlarge"
},
})
grantees = ["CZI - Large GPU Large Clusters"]
}

module "large_gpu_personal_cluster_policy" {
Expand Down Expand Up @@ -281,6 +283,7 @@ module "large_gpu_personal_cluster_policy" {
"defaultValue" : "g4dn.xlarge"
},
})
grantees = ["CZI - Large GPU Personal"]
}

module "large_gpu_small_clusters_cluster_policy" {
Expand Down Expand Up @@ -328,6 +331,7 @@ module "large_gpu_small_clusters_cluster_policy" {
"defaultValue" : "g4dn.xlarge"
},
})
grantees = ["CZI - Large GPU Small Clusters"]
}

module "small_clusters" {
Expand Down Expand Up @@ -380,6 +384,7 @@ module "small_clusters" {
"hidden" : false
},
})
grantees = ["CZI - Small Clusters"]
}

module "superset_compute_cluster_policy" {
Expand Down Expand Up @@ -415,4 +420,5 @@ module "superset_compute_cluster_policy" {
"defaultValue" : "superset_pool"
},
})
grantees = ["CZI - Superset Compute"]
}
Loading