Hi all, I'm working on an inline program using the...
# general
c
Hi all, I'm working on an inline program using the Automation API. When
await LocalWorkspace.createOrSelectStack
is called, I'm having the same error as this one from earlier, however I'm using InlineProgramArgs. Any advice is appreciated!
b
Do yo have the Pulumi cli installed?
c
Yes I do
b
is it available on your
$PATH
?
c
It's not in my path, do I need to add it? All of the pulumi work I'm doing is in NodeJs
b
yes you still need the pulumi CLI in your path as that’s where the engine is invoked from
c
I am testing pulumi in our app that is deployed on a kubernetes cluster, so I don't believe the CLI on my machine is relevant here. Let me know
b
the CLI needs to be wherever you invoke Pulumi from
c
Ok, so what should I do when I have it configured
b
it should just work. If you’re putting your Pulumi App on a Kubernetes cluster, you’ll just need to ensure it exists on your path in your docker container
c
https://github.com/pulumi/automation-api-examples/tree/main/nodejs/inlineProgram-ts This documentation says that the Pulumi CLI installation is needed but then says "No invocation through the Pulumi CLI required". Pulumi is working in other areas of our application and we are not invoking the CLI
b
“No invocation through the Pulumi cli is required” means that you don’t drive the application through the cli, run Pulumi up. That’s done for you with automation api You need the cli to be installed and in your path for automation api to work