Skip to content

Commit 420bf8b

Browse files
committed
rm unnecessary binding in config posture
1 parent 1189524 commit 420bf8b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

modules/config-posture/main.tf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ resource "google_service_account" "posture_auth" {
2929
project = var.project_id
3030
}
3131

32-
resource "google_service_account_iam_binding" "posture_auth_binding" {
33-
service_account_id = google_service_account.posture_auth.name
34-
role = "roles/iam.workloadIdentityUser"
35-
36-
members = [
37-
"serviceAccount:${google_service_account.posture_auth.email}",
38-
]
39-
}
40-
4132
#------------------------------------------------------------#
4233
# Configure Workload Identity Federation for auth #
4334
# See https://cloud.google.com/iam/docs/access-resources-aws #
@@ -106,7 +97,6 @@ resource "sysdig_secure_cloud_auth_account_component" "google_service_principal"
10697
})
10798
depends_on = [
10899
google_service_account.posture_auth,
109-
google_service_account_iam_binding.posture_auth_binding,
110100
google_iam_workload_identity_pool.posture_auth_pool,
111101
google_iam_workload_identity_pool_provider.posture_auth_pool_provider,
112102
google_project_iam_member.cspm,

0 commit comments

Comments
 (0)