This message was deleted.
# automation-api
s
This message was deleted.
f
Is that environment variable set in the shell process that’s running the server? In what you’ve pasted above, it looks like you’re setting it in the shell where you’re running curl.
h
yes you are right, thanks!!
l
@hundreds-receptionist-31352 you can also set these environment variables on the workspace. You should be able to do this at the time you create your stack. https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/x/automation/#LocalWorkspace-envVars Then every command will have them. But you will have to update all usages of LocalWorkspace.create/select stack, or anywhere that a LocalWorkspace is created. Those methods take an optional third parameter where you can set env vars on init: https://github.com/pulumi/automation-api-examples/blob/main/nodejs/pulumiOverHttp-ts/index.ts#L73
h
Thanks Evan, I'll take a look at that too