I'm trying to automate the deploy to instances in an auto scaling group.
Unfortunately I can't consider CodeDeploy or other AWS services, so I'm trying to do this only with EC2 tools.
This is my approach: i wrote a script that creates an AMI from a "master" instance (the only one I'm deploying to), then creates a new launch config with it, then updates my auto scaling group with it.
I'm trying to take advantage of the termination policies, more specifically the "oldest launch configuration" one. It works like a charm but, as you maybe already know, this only works when scaling in.
How can I update my instances when I'm not scaling in? Any suggestion on how to force the termination of the "old" instances?
Thanks for help!