Skip to content

Instantly share code, notes, and snippets.

@arslanbekov
Created November 24, 2022 16:35
Show Gist options
  • Save arslanbekov/b540c026541d2c320c9fbb37d197452c to your computer and use it in GitHub Desktop.
Save arslanbekov/b540c026541d2c320c9fbb37d197452c to your computer and use it in GitHub Desktop.

Revisions

  1. arslanbekov created this gist Nov 24, 2022.
    5 changes: 5 additions & 0 deletions main.tf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    resource "google_service_account_iam_member" "wif-sa" {
    service_account_id = "projects/my-gcp-project/serviceAccounts/[email protected]"
    role = "roles/iam.workloadIdentityUser"
    member = "principalSet://iam.googleapis.com/${google_iam_workload_identity_pool.github_actions.name}/*"
    }