https://pulumi.com logo
#google-cloud
Title
# google-cloud
f

fierce-market-67222

11/09/2022, 10:32 AM
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

gentle-nightfall-2327

11/09/2022, 10:38 AM
Is it not possible to configure 2 different providers and then simply to pass that in with the ResourceOptions.
f

fierce-market-67222

11/09/2022, 11:16 AM
yes but its the same provider i mean its stil gcp, just a diffrent project
g

gentle-nightfall-2327

11/09/2022, 11:30 AM
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

fierce-market-67222

11/10/2022, 7:37 AM
well i solved it outside of pulumi by creating only one SA… https://gtseres.medium.com/using-service-accounts-across-projects-in-gcp-cf9473fef8f0
4 Views