Skip to content

Commit

Permalink
fix: Move out power user group (#659)
Browse files Browse the repository at this point in the history
* fix: Move out power user group

* power user group default name
  • Loading branch information
alldoami authored Oct 17, 2024
1 parent 57f3f20 commit 68a0747
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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
6 changes: 6 additions & 0 deletions databricks-default-cluster-policies/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ variable "policy_map" {
description = "Map of policy names to groups"
type = list(map(list(string)))
}

variable "power_user_group_name" {
description = "Name of the power user group"
type = string
default = "Power Users"
}

0 comments on commit 68a0747

Please sign in to comment.