jolly-journalist-76169
02/17/2023, 9:25 PMGoogle 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 accessToken
(https://www.pulumi.com/registry/packages/gcp/installation-configuration/#configuration-reference; 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!billowy-army-68599
02/20/2023, 5:07 PMpulumi 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
https://github.com/google/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
https://stackoverflow.com/questions/72874673/how-to-authenticate-with-gcloud-using-just-access-token`