https://pulumi.com logo
Title
p

proud-machine-85126

08/31/2022, 4:05 AM
Say I have 200 ec2 instances I want to roll from A to B. Is there a way to limit the number in-flight ec2 instances that Pulumi will build/destroy at once? (Rate limiting the pulumi API isn't an option due to the number of calls needed to support the app.) Ideally what we want is for Pulumi to build 1, destroy 1, build 1, destroy 1 ... all night long.
b

billowy-army-68599

08/31/2022, 4:24 AM
are they in an autoscaling group? or have you defined 200x instances in a loop?
p

proud-machine-85126

08/31/2022, 4:24 AM
200x instances are in a loop
we basically have 200 shards & we want to replace them one at a time
b

billowy-army-68599

08/31/2022, 4:26 AM
pulumi up --parallel 1
will do it, but please test it first
also, hope you’re considering using an ASG 😄
p

proud-machine-85126

08/31/2022, 4:29 AM
thanks - good suggestions