-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auth alternative: service account impersonation #4642
Comments
There are two tools in the provider that may help here:
If neither of these work for you, please let me know! I'll leave this issue open until you've had a chance to try those. |
Thanks @rileykarson ! I couldn't get approach (1) to work for my case, presumably since the Access Context Manager APIs are acting at an organization level (no default project). However, approach (2) does what I was asking for with a couple extra lines - which is fine. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Description
The current options available for GCP Terraform authentication from a workstation appear to be either application default credentials (ADC) or service account key files.
Error 403: Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the accesscontextmanager.googleapis.com
A new alternative provided by
gcloud
is the--impersonate-service-account
flag. This uses a short-term key exchange rather than a keyfile download. If the google Terraform provider had a way of accepting a similar credential (e.g. transforming ADC into impersonated SA creds), that would allow easy/secure terraform usage from local workstations.New or Affected Resource(s)
Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: