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

aloof-queen-92013

03/02/2023, 6:27 PM
Hello All- I am using a forEach call in typescript to deploy 20 services. The problem is that each independent service is deployed sequentially. We don't set the parallel option when we run pulumi up. Is there a way to deploy the services in parallel?
l

little-cartoon-10569

03/02/2023, 8:01 PM
The loop isn't relevant to deployment. All your code does is set things up for deployment; the engine does all the deployment later, after your code has done its thing. The default value for the
--parallel
option for up is unbounded, so they should all be deployment in parallel.
How are you determining that deployment is happening sequentially? The Pulumi graph output would be a reasonable indicator. Another option would be to use
pulumi.log
or
console.log
in an
apply()
on some output of the resource, like the ARN. If the logs are unordered then you can be reasonably confident that the resources are being deployed asynchronously.
a

aloof-queen-92013

03/03/2023, 4:46 AM
the logs in the GHA runner, and what I can see happening in AWS console tell me its happening sequentially
l

little-cartoon-10569

03/03/2023, 5:52 AM
Don't know then, sorry.