Skip to content

Commit

Permalink
chore: [ONCALL-693] Add account-level groups to policies (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldengolab authored Jan 19, 2024
1 parent bcef371 commit 5e82aad
Showing 1 changed file with 9 additions and 3 deletions.
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"]
}

0 comments on commit 5e82aad

Please sign in to comment.