I have a requirement when using AWS autoscaling groups:
- I need to wait for the first instance to finish installation of software packages before the autoscaling group spins up subsequent instance.
- The installation of the first instance will take hours
- The installation completes when the service starts and the service is using a certain port (eg. service is running on port 123)
How am I able to set up this?
From Amazon EC2 Auto Scaling lifecycle hooks - Amazon EC2 Auto Scaling:
Thus, you could configure a Lifecycle Hook that waits for your newly-launched instance to signal back that it is ready. That instance will then be added to the Auto Scaling group.
However, I'm not sure whether you can prevent another scale-out event during this time.