Skip to content

Commit b08e07b

Browse files
committed
Allow invoker to create an open id token
1 parent c453f1f commit b08e07b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

gcp/tf/invoker.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ resource "google_service_account_iam_binding" "invoker_impersonators" {
2222
role = "roles/iam.serviceAccountTokenCreator"
2323
members = ["serviceAccount:${each.value}"]
2424
}
25+
26+
// Allow agents to create open id token
27+
resource "google_service_account_iam_binding" "invoker_idtoken" {
28+
for_each = var.invoker_impersonators
29+
30+
service_account_id = google_service_account.invoker.id
31+
role = "roles/iam.serviceAccountOpenIdTokenCreator"
32+
members = ["serviceAccount:${each.value}"]
33+
}

0 commit comments

Comments
 (0)