Is it possible to use Azure Functions endpoints to wrap pulumi Automation?
I have some simple pulumi TS code that creates a resource group and want to hit an endpoint in azure that will then provision a resource group for me.
Basically
const stack = await LocalWorkspace.createStack({
stackName: orgAndStack,
projectName,
program: createPulumiProgram(context, content),
} );
inside an azure function. I have tried and I can run it locally but not on azure. Errors are
"errno": -4058, "code": "ENOENT", "syscall": "spawn pulumi",
I think this implies it tries to call the CLI which I guess is not available at the point where the code is executed.
Should I just dump all my stuff into a docker container instead and give up on the Azure Functions idea?