This change partly addresses pulumi/pulumi#1611, by permitting you to export a promise at the top-level, and have it be recognized as a stack output. In other words, you can now say things like async function main() { ... return { a: "x", ..., z: 42, }; } module.exports = main(); and your Pulumi program will record distinct outputs as you'd hope: ---outputs:--- a: "x" ... z: 42 This is arguably just a bug in the way we implemented stack outputs. The remainder of the requests in #1611 will remain open for future design and discussion, as they have more subtle ramifications. |
||
---|---|---|
.. | ||
cases | ||
run.spec.ts |