Would like to ask for recommendations on ready automated solutions or templates for rolling ec2 instance upgrade on AWS, requiring a reboot with ELB/ALB. Specifically required to perform the maintenance upgrade for the kernel on hundreds of Linux machines.
For each ELB/ALB steps are:
- Disconnect ec2 instance from ELB/ALB wait for connection draining
- Upgrade kernel and reboot machine (not part of automation, e.g. running external ./upgrade.sh)
- Wait for instance to be online, connect to ELB/ALB, wait for health check status
- Continue to next instance in the load balancer
Note: not looking for migration to the solution similar to Netflix Spinnaker or immutable deployment strategy implementation, but for general and simple on-demand maintenance tool.