boundless-monkey-50243
08/31/2018, 7:03 PM{ vpc: { id: "vpc-xxx" } }
, to match the pattern of accessing the object that I gave Pulumi to deal with.boundless-monkey-50243
08/31/2018, 7:06 PMstocky-spoon-28903
08/31/2018, 7:06 PMboundless-monkey-50243
08/31/2018, 7:07 PMbitter-oil-46081
08/31/2018, 7:10 PMadventurous-jordan-10043
08/31/2018, 8:09 PMpulumi preview
in a file for a later use with pulumi update
?adventurous-jordan-10043
08/31/2018, 8:10 PMtf plan -out x
and then tf apply x
boundless-monkey-50243
09/02/2018, 3:14 PMaws.getAvailabilityZones
inline, I've tried to wrap my Pulumi definition into a Promise. This results in getting no outputs, either when assigning it directly to module.exports
or export
-ing values as keys. How do I correctly do this so Pulumi picks up what I am putting down?boundless-monkey-50243
09/02/2018, 3:21 PMmodule.exports = (async () => doSomething())();
in order to avoid thinking about the lack of top-level awaitboundless-monkey-50243
09/02/2018, 3:23 PMbig-piano-35669
boundless-monkey-50243
09/02/2018, 3:29 PMbig-piano-35669
boundless-monkey-50243
09/02/2018, 3:31 PMboundless-monkey-50243
09/02/2018, 3:31 PMboundless-monkey-50243
09/02/2018, 3:32 PMboundless-monkey-50243
09/02/2018, 3:32 PMbig-piano-35669
big-piano-35669
boundless-monkey-50243
09/02/2018, 3:34 PMboundless-monkey-50243
09/02/2018, 3:34 PMboundless-monkey-50243
09/02/2018, 3:34 PMmodule.exports = (async () => {
return { x: 5 };
})();
boundless-monkey-50243
09/02/2018, 3:35 PMbig-piano-35669
boundless-monkey-50243
09/02/2018, 3:35 PMbig-piano-35669
module.exports.x = (async () => {
return { x: 5 };
})().then(o => o.x);
Not ideal, but it should do the trick.boundless-monkey-50243
09/02/2018, 3:41 PMboundless-monkey-50243
09/02/2018, 3:42 PMboundless-monkey-50243
09/02/2018, 3:42 PMboundless-monkey-50243
09/02/2018, 3:42 PM