hi there im using 2 SA for google on 2 projects on...
# google-cloud
f
hi there im using 2 SA for google on 2 projects one for bucket creation and one for dns creation how can i tell pulumi to switch between them? The only method i know is using env-var …but this wont work here…Thank you 🙂
g
Is it not possible to configure 2 different providers and then simply to pass that in with the ResourceOptions.
f
yes but its the same provider i mean its stil gcp, just a diffrent project
g
Sorry man, I have now had a look at the API docs and it doesn't look like my assumption is possible. Was hoping that it would be possible to simply configure a Provider with a different SA. Goodluck, and please let us know when you have the solution.
f
well i solved it outside of pulumi by creating only one SA… https://gtseres.medium.com/using-service-accounts-across-projects-in-gcp-cf9473fef8f0