little-cartoon-10569
08/10/2020, 5:04 AMawsx.ec2.Vpc.fromExistingIds
to load a Vpc created elsewhere so that I can create a new route on one of its subnets. But awsx.ec2.Vpc#privateSubnets
is async
, and typescript doesn't allow use of await
in constructors.
I assume that I have to use an async function called after my constructor?green-school-95910
08/10/2020, 9:01 PMpulumi.output
and treat them as any pulumi resource, manipulating using .apply(...)
little-cartoon-10569
08/10/2020, 9:38 PMpulumi.output
and use apply in the normal way, that's useful. I do the opposite in my tests all the time, I should have guessed!green-school-95910
08/10/2020, 9:43 PMpulumi.Input<something>
and then use it with pulumi.output
, this my functions and constructors accepts resource outputs, promises and raw values at any timelittle-cartoon-10569
08/10/2020, 10:40 PM