I created an EC2 instance; then using that instance created an AMI which is used for auto-scaling. I created the classical load balancer which originally pointed just to the original instance & this load balancer is used in creating the auto-scaling as well. The settings of the auto-scaling are:
- Desired no. of instances:- 1
- Minimum no. of instance:- 1
- Maximum no. of instances:- 4
Now, the original instance is already running & the auto-scaling is creating another instance – I want (at this point) to run only one instance (that’s my original instance) but a new instance is being created, making it 2 instances running at a time.
Does it mean that AWS auto-scaling checks the desired/minimum/maximum no. of instances running from the AMI group provided? Other instances (which were no created from the AMI such as the original instance) are not considered?