https://pulumi.com logo
#automation-api
Title
# automation-api
b

brash-finland-19802

11/15/2023, 9:34 PM
Is there any way to control what account pulumi is logged into with the automation api? Do i just overwrite the config?
l

little-cartoon-10569

11/15/2023, 11:02 PM
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

lemon-agent-27707

11/16/2023, 12:57 AM
what account pulumi is logged into
Do you mean AWS account or state storage backend?
b

brash-finland-19802

11/16/2023, 1:53 AM
state storage backend
r

red-match-15116

11/17/2023, 11:43 PM
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
2 Views