https://pulumi.com logo
Title
c

cuddly-monkey-5560

02/11/2023, 12:27 AM
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

billowy-army-68599

02/11/2023, 12:28 AM
Do yo have the Pulumi cli installed?
c

cuddly-monkey-5560

02/11/2023, 12:38 AM
Yes I do
b

billowy-army-68599

02/11/2023, 12:47 AM
is it available on your
$PATH
?
c

cuddly-monkey-5560

02/11/2023, 12:49 AM
It's not in my path, do I need to add it? All of the pulumi work I'm doing is in NodeJs
b

billowy-army-68599

02/11/2023, 12:53 AM
yes you still need the pulumi CLI in your path as that’s where the engine is invoked from
c

cuddly-monkey-5560

02/11/2023, 12:55 AM
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

billowy-army-68599

02/11/2023, 12:56 AM
the CLI needs to be wherever you invoke Pulumi from
c

cuddly-monkey-5560

02/11/2023, 12:57 AM
Ok, so what should I do when I have it configured
b

billowy-army-68599

02/11/2023, 12:58 AM
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

cuddly-monkey-5560

02/11/2023, 1:09 AM
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

billowy-army-68599

02/11/2023, 2:06 AM
“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