Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29541

AWS autoscaling- add instance to specific availability zone when increasing desired capacity

$
0
0

I'm using the following command to increase the desired capacity of an autoscaling group so that it scales up by 1 instance from 2 to 3:

aws autoscaling update-auto-scaling-group --region eu-west-1 \
--auto-scaling-group-name $ASG_NAME \
--desired-capacity 3 

What I would like to do is to be able to specify the zone the new instance runs in, but from my experiments so far, I have not found a way of achieving this. I tried using the --availability-zones flag, but this is to add availability zones to the autoscaling group, so not what I'm looking for.
Does anyone know if this is possible?


Viewing all articles
Browse latest Browse all 29541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>