This message was deleted.
# general
s
This message was deleted.
m
one thing you could do is use the automation sdk to retrieve them from that program with
stack.outputs()
. something like this might work for you, to get the outputs of a stack you’d otherwise be able to run
pulumi stack output
for locally:
Copy code
const automation = require("@pulumi/pulumi/x/automation");

async function getStackOutputs(stackName, projectName) {
    const stack = await automation.LocalWorkspace.selectStack({
        stackName,
        projectName,
        program: () => {},
    });
    return await stack.outputs();
}

(async () => {
    const outputs = await getStackOutputs("my-stack", "my-project");
    console.log(outputs);
})();
c
cool thanks!
👍 1
this is exactly I was looking for. Pulumi ❤️
🤘 1