Say I have 200 ec2 instances I want to roll from A...
# golang
p
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
are they in an autoscaling group? or have you defined 200x instances in a loop?
p
200x instances are in a loop
we basically have 200 shards & we want to replace them one at a time
b
pulumi up --parallel 1
will do it, but please test it first
also, hope you’re considering using an ASG 😄
p
thanks - good suggestions