Skip to content

Commit 1770cda

Browse files
committed
SSPROD-48612: add ciem roles to cspm svc acct org case
1 parent 3814ac6 commit 1770cda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/config-posture/organizational.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ data "google_organization" "org" {
1515
# role permissions for CSPM (GCP Predefined Roles for Sysdig Cloud Secure Posture Management)
1616
#---------------------------------------------------------------------------------------------
1717
resource "google_organization_iam_member" "cspm" {
18-
for_each = var.is_organizational ? toset(["roles/cloudasset.viewer", "roles/iam.workloadIdentityUser", "roles/logging.viewer", "roles/cloudfunctions.viewer", "roles/cloudbuild.builds.viewer", "roles/orgpolicy.policyViewer"]) : []
18+
# adding ciem role with permissions to the service account alongside cspm roles
19+
for_each = var.is_organizational ? toset(["roles/cloudasset.viewer", "roles/iam.workloadIdentityUser", "roles/logging.viewer", "roles/cloudfunctions.viewer", "roles/cloudbuild.builds.viewer", "roles/orgpolicy.policyViewer", "roles/recommender.viewer", "roles/iam.serviceAccountViewer", "roles/iam.roleViewer", "roles/container.clusterViewer", "roles/compute.viewer"]) : []
1920

2021
org_id = data.google_organization.org[0].org_id
2122
role = each.key

0 commit comments

Comments
 (0)