Missing environment variable prevents automation API from working in container pulumi/pulumi
#141
Labels
kind/enhancement
Improvements or new features
pulumi/pulumi
#141
What happened?
I'm trying to embed a typescript application that leverage the Automation API to execute a Local Program using the
LocalProgramArgs
.I've set up the container with the required
PULUMI_ACCESS_TOKEN
env var and I've also provided the env-vars for AWS.Here the command I'm using to launch the container with bash.
Inside the container I'm able to navigate to the directory with the pulumi program and run the CLI commands (e.g. pulumi preview -s ).
When I try to run the program using the automation api, I use this command:
Here the content of the file index.ts
But I get this error:
Had support on the community slack channel, and turned out the problem was a missing env variable (PULUMI_HOME) not reported anywhere in the documentation for the docker container. You can check the conversation here https://pulumi-community.slack.com/archives/C019YSXN04B/p1684339917792559
Expected Behavior
Either this behavior is documented in the docker image README, or the problem should be fixed by not requiring the environment variable
Steps to reproduce
Check description above
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: