Is there any way to control what account pulumi is...
# automation-api
b
Is there any way to control what account pulumi is logged into with the automation api? Do i just overwrite the config?
l
Configure your provider with the right creds / tokens / whatever is appropriate.
If you use the default provider, then you have to configure env vars, Pulumi config values or the config file.
l
what account pulumi is logged into
Do you mean AWS account or state storage backend?
b
state storage backend
r
Here's an example that uses a local backend, you could use the same mechanism to log into a blob storage backend, passing in the relevant blob storage like
<s3://my-pulumi-state-bucket>
Or are you trying to use the Pulumi Cloud backend and specifically just change the access token used for authentication?
If it's the latter, you can set the
PULUMI_ACCESS_TOKEN
env var