https://pulumi.com logo
#getting-started
Title
# getting-started
r

rhythmic-branch-12845

07/04/2022, 3:10 PM
hi all, does anybody know if pulumi works with python’s asyncio?
b

billowy-army-68599

07/04/2022, 4:00 PM
In what context?
r

rhythmic-branch-12845

07/05/2022, 1:13 PM
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
(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.
3 Views