https://pulumi.com logo
#python
Title
# python
p

proud-artist-4864

02/17/2019, 10:01 PM
I tried encapsulating everything in an asyn def main() and then calling that from an asyncio loop, but that clashed with pulumi already wrapping my stuff in its own loop/invocation.
a

alert-nightfall-75483

04/06/2019, 7:01 PM
Ron, did you ever get the answer?
p

proud-artist-4864

04/08/2019, 6:26 AM
well, itโ€™s complicated ๐Ÿ™‚
To pass the output of a get_x pulumi call to another pulumi resource needs the following: async def get_my_info(params): result = pulumi_aws.ec2.get_something() return result.id # in your user code a_thing = pulumi_aws.ec2.SomeResource(params, input_id = get_my_info()) The get_my_info function will get called as part of the setup for the SomeResource invocation by the provider at run time.
๐Ÿ‘ 1