I am thinking of using the automation api in an asyncio python program, but am not sure if the api itself is nonblocking
b
billowy-army-68599
07/05/2022, 6:17 PM
ah, the automation API will work with asyncio
billowy-army-68599
07/05/2022, 6:17 PM
(I believe)
g
great-sunset-355
07/07/2022, 7:36 AM
I also think that automation api should work with asyncio.
I tried to use aio within the pulumi runtime and run into problems.
Please share your findings.
l
lemon-church-28946
07/13/2022, 8:33 PM
AIO in the Pulumi program would probably work but I think similar functionality is already available due to the output objects that are returned by most function calls. Everything generally runs in parallel unless a blocking function is called.
I've had a great experience with using the Automation API by referencing an external Pulumi project via
pulumi.automation.create_or_select_stack
. Here's the example that got me started in that direction. Can definitely AIO from that location.
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.