02/17/2023, 9:25 PM
Hope someone can help me with my problem! I would like to keep the state of Pulumi in GS (
Google Storage
). What am I doing now? 1. I use the module "npm googleapis" where I log in via
OAuth2 to GCP
and get the accessToken - I have it stored under the variable. 2. I would like to use my accessToken in Pulumi to hold the state in GS. I have read about setting the
pulumi config set gcp:accessToken
), but all attempts end up forcing me to log into
Pulumi Service
- and I would like to avoid that. Actually, the matter would be solved if someone would show me how to use the
pulumi login gs://
command and pass my accessToken in it. I hope there will be someone here with knowledge!
maybe @billowy-army-68599?:)


02/20/2023, 5:07 PM
@jolly-journalist-76169 I’m not super familiar with gcp auth, but one thing to note - the mechanism that you use to authenticate the provider (ie:
pulumi config set gcp:accessToken
) is different from the way you authenticate to a backend. So setting that value isn’t enough to talk to a backend. We use
go-cloud to manage the backend logic, so the mechanism to authenticate to a backend will likely be there. A quick google led me to this, maybe you can try setting one of these env vars`