sparse-intern-71089
05/07/2019, 2:02 AMwhite-balloon-205
exec - you'd need something like:
output.apply(v => {
exec(v);
});
That is - you only have access to the value of the output within the callback for the apply, so you'll want to invoke the exec inside that scope.
This is because the apply will actually not always run - it will only run once the value of the output is known - which may not be available during a preview. (In the case of StackReference though, I believe it is the case these will always be available).shy-army-45455
05/07/2019, 10:16 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by