```const stack = await LocalWorkspace.selectStack(...
# automation-api
m
Copy code
const stack = await LocalWorkspace.selectStack({
  stackName: `${organization}/${stackName}`,
  projectName: project,
  program: async () => { }, // don't need a program just to get outputs
})

await stack.setAllConfig({ 'PULUMI_ACCESS_TOKEN': 'xxx' })

const outputsRes = await stack.outputs()
l
PULUMI_ACCESS_TOKEN is an environment variable, not a conflg value.
1
m
Hi @little-cartoon-10569 - thanks for the response. Is it secure to set PULUMI_ACCESS_TOKEN as an environment variable in a container?
l
I believe so. This approach is used with many tools as a secure way to avoid putting secret values on the command line. The environment of one shell / process is well-protected from other processes.
This approach pre-dates Pulumi by many years...
m
Got it thank you!