-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Description
As someone less experienced, I would've really appreciated a bit more details in the section:
- Use dynamic credentials with the GCP provider
- Configure GCP
- Add a Service Account and Permissions
- Grant External Permissions
- Add a Service Account and Permissions
- Configure GCP
I was getting the following error on every run:
Permission 'iam.serviceAccounts.getAccessToken' denied on resource (or it may not exist).
The solution is:
- Go to the identity pool
- Click Grant Access
- Choose "Grant access using service account impersonation"
- Select your service account
- Set subject to
organization:{organization}:project:{project}:workspace:{workspace}:run_phase:plan
- REPEAT 1-4 & set subject to
organization:{organization}:project:{project}:workspace:{workspace}:run_phase:apply
- Confirm the subjects are set via the identity pool's "Connected service accounts" tab
Metadata
Metadata
Assignees
Labels
No labels