Skip to content

Commit

Permalink
adding group permissions for ghes dashbaords (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
MOHAMMED-ho authored Feb 27, 2025
1 parent 1a19fb9 commit a1bf0d6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dashboards/ghes_dashboards/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1403,3 +1403,18 @@ resource "dynatrace_json_dashboard" "this" {
}
EOT
}
data "dynatrace_iam_group" "ho_cc_platform_engineer_env_admin" {
name = "ho_cc_platform_engineer_env_admin"
}

resource "dynatrace_dashboard_sharing" "this" {
dashboard_id = dynatrace_json_dashboard.this.id
enabled = true
permissions {
permission {
id = data.dynatrace_iam_group.ho_cc_platform_engineer_env_admin.id
level = "EDIT"
type = "GROUP"
}
}
}

0 comments on commit a1bf0d6

Please sign in to comment.