Ask HN: Do you use AWS autoscaling with fully baked AMIs?
https://news.ycombinator.com/item?id=7709667Is anyone using autoscaling on AWS with fully baked AMIs and blue/green deployments (as opposed to base images that get the latest app code from git or S3 at boot time, then get explicitly deployed to for updates) ? This is what this blog post describes as « phoenix » rather than « snowflake » servers : http://blog.woorank.com/2013/10/phoenix-servers-packerio/
I’m using Packer and Ansible to build a ready-to-go AMI in a few minutes from a base OS image.
But then, what tools do you use to automate the process of getting this AMI live ? Which entails : creating a new Launch Configuration with the AMI, pointing a standby autoscaling group to the new Launch config, ramping up the number of instances in it, start routing live traffic to it (likely by updating a Route53 alias entry to point to the right ELB), and finally scaling down the previously live group. Rinse and repeat.
I’m about to roll my own boto-based script to do that, but I'm sure this has to be a common pattern : anything out there already ?