I guess you need
await Promise.All(...your-list-of-promises);
that way you should have them all
another example, maybe more clear:
await Promise.All([foo.promise(), bar.promise()]);
hth
f
faint-table-42725
03/08/2021, 5:02 PM
Another thing to keep in mind is that
Input<T> = T | Promise<T> | OutputInstance<T>;
faint-table-42725
03/08/2021, 5:02 PM
So if you pass in the promise as an input at any point to a resource, the runtime will ensure the promise is resolved as part of constructing the resource
No 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.