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

fix: Move out power user group #659

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 1 addition & 7 deletions databricks-default-cluster-policies/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data "aws_caller_identity" "current" {
provider = aws
}
locals {
power_user_group_name = "Power Users"
power_user_group_name = var.power_user_group_name
all_users_group_name = "users"

default_policy_family_ids = {
Expand Down Expand Up @@ -50,12 +50,6 @@ locals {
} : {}
}

resource "databricks_group" "power_user_group" {
display_name = local.power_user_group_name
allow_cluster_create = true
allow_instance_pool_create = false
}

## Modified Databricks defaults
module "legacy_shared_compute_cluster_policy" {
source = "../databricks-cluster-policy"
Expand Down
5 changes: 5 additions & 0 deletions databricks-default-cluster-policies/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ variable "policy_map" {
description = "Map of policy names to groups"
type = list(map(list(string)))
}

variable "power_user_group_name" {
alldoami marked this conversation as resolved.
Show resolved Hide resolved
description = "Name of the power user group"
type = string
}
Loading