<https://www.pulumi.com/docs/guides/crosswalk/aws/...
# aws
c
https://www.pulumi.com/docs/guides/crosswalk/aws/vpc/#configuring-security-groups-for-a-vpc this Crosswalk example is broken, and it appears that the
vpc.get...
functions aren't able to be used to reference the subnets/routetables/etc. because they don't get resolved, but also lack
apply()
to force a resolve
Copy code
error TS2339: Property 'apply' does not exist on type 'Promise<Output<string>[]>'.
when trying to get the
subnetId
for the Instance
webserver-www
Ah... https://github.com/pulumi/pulumi-awsx/issues/491 When you remember that
awsx
is separate from
aws
in the issues it's easier to find.
l
If you want to call
apply()
on a
Promise
you can wrap it in
pulumi.output(yourPromiseGoesHere)
.
Pulumi knows to call await or then or whatever it is that it needs to call..