8.8 Instance Refresh: Rolling AMI Updates in an ASG
Right, so you’ve got your Auto Scaling Group humming along, serving traffic, feeling good about itself. But here’s the problem: the Amazon Machine Image (AMI) it’s using is starting to feel a little… vintage. Maybe there’s a critical security patch, a new kernel version, or you’ve just perfected your application’s baked-in dependencies. You need to deploy a new AMI. Your first thought might be to just update the launch template and let the ASG work its magic, but if you do that, you’ll quickly learn that an ASG’s default magic is more of a blunt instrument. It will, quite merrily, terminate your old instances and launch new ones all at once, causing a delightful little service outage.