https://pulumi.com logo
#general
Title
# general
s

stocky-nail-30268

10/23/2019, 3:06 PM
Yo, so we're using
awsx.ec2.Vpc.fromExistingIds
and the
ComponentResourceOptions
doesn't have an
async
property on it, so I assume at some point
getVpc
is being called, and we have no way of making that async. Is there a different way of making this call for it to work?
Copy code
warning: Synchronous call made to "aws:ec2/getVpc:getVpc" with an unregistered provider.                                                                                                                                               
For more details see: <https://www.pulumi.com/docs/troubleshooting/#synchronous-call>
l

lemon-spoon-91807

10/23/2019, 5:42 PM
@stocky-nail-30268 where you end up creating your Provider canyou call:
await ProviderResource.register(myProvider)