Skip to content

Commit

Permalink
back to principalSet.
Browse files Browse the repository at this point in the history
  • Loading branch information
GondekNP committed Dec 31, 2023
1 parent 14a2fa7 commit 371f856
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ resource "google_service_account_iam_binding" "workload_identity_user" {
service_account_id = google_service_account.default.name
role = "roles/iam.workloadIdentityUser"
members = [
"serviceAccount:${google_service_account.default.email}"
"principalSet://iam.googleapis.com/projects/${data.google_project.project.number}/locations/global/workloadIdentityPools/${google_iam_workload_identity_pool.pool.workload_identity_pool_id}/attribute.repository/burn-severity-mapping-poc"
]
}
8 changes: 5 additions & 3 deletions terraform.tfstate
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.6.0",
"serial": 56,
"serial": 58,
"lineage": "44075ebe-b91a-1e72-3b17-affdfb63c0f1",
"outputs": {},
"resources": [
Expand Down Expand Up @@ -400,17 +400,19 @@
"schema_version": 0,
"attributes": {
"condition": [],
"etag": "BwYMzVAjNrY=",
"etag": "BwYNxENC/ts=",
"id": "projects/dse-nps/serviceAccounts/[email protected]/roles/iam.workloadIdentityUser",
"members": [
"serviceAccount:github-actions-service-account@dse-nps.iam.gserviceaccount.com"
"principalSet://iam.googleapis.com/projects/113009620257/locations/global/workloadIdentityPools/github/attribute.repository/burn-severity-mapping-poc"
],
"role": "roles/iam.workloadIdentityUser",
"service_account_id": "projects/dse-nps/serviceAccounts/[email protected]"
},
"sensitive_attributes": [],
"private": "bnVsbA==",
"dependencies": [
"data.google_project.project",
"google_iam_workload_identity_pool.pool",
"google_service_account.default"
]
}
Expand Down
5 changes: 2 additions & 3 deletions terraform.tfstate.backup
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.6.0",
"serial": 55,
"serial": 56,
"lineage": "44075ebe-b91a-1e72-3b17-affdfb63c0f1",
"outputs": {},
"resources": [
Expand Down Expand Up @@ -403,15 +403,14 @@
"etag": "BwYMzVAjNrY=",
"id": "projects/dse-nps/serviceAccounts/[email protected]/roles/iam.workloadIdentityUser",
"members": [
"principalSet://iam.googleapis.com/projects/dse-nps/locations/global/workloadIdentityPools/github/attribute.repository"
"serviceAccount:github-actions-service-account@dse-nps.iam.gserviceaccount.com"
],
"role": "roles/iam.workloadIdentityUser",
"service_account_id": "projects/dse-nps/serviceAccounts/[email protected]"
},
"sensitive_attributes": [],
"private": "bnVsbA==",
"dependencies": [
"google_iam_workload_identity_pool.pool",
"google_service_account.default"
]
}
Expand Down

0 comments on commit 371f856

Please sign in to comment.