Skip to content

Commit

Permalink
making it an organization level role
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpais committed Jan 18, 2025
1 parent 67fae54 commit 2133813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/vm-workload-scanning/organizational.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "google_organization_iam_custom_role" "custom_role" {

resource "google_organization_iam_member" "controller" {
for_each = var.is_organizational ? toset([
"roles/${google_organization_iam_custom_role.custom_role[0].role_id}"
"organizations/${data.google_organization.org[0].org_id}/roles/${google_organization_iam_custom_role.custom_role[0].role_id}"
]) : []

org_id = data.google_organization.org[0].org_id
Expand Down

0 comments on commit 2133813

Please sign in to comment.