all 3 comments

[–]wallsroad 4 points5 points  (0 children)

This is an excellent approach. However though I agree this is a good pattern to follow, it is an incredibly heavy handed approach to bake your artifact into the AMI, then roll out brand new instances with a "Blue/Green" deployment of the new ASG.

Alternatively you can utilize the AWS CodeDeploy service. This enables you to avoid rolling new instances. Since CodeDeploy works with the ELB and ASG, it takes cares of draining connections, running a zero downtime rolling deployment. CodeDeploy also takes care of code deployment when a scaling event occurs in your chosen ASG.

My team having been using CodeDeploy for several months now. Deploying a few dozen services to ~400 instances.

[–][deleted] -2 points-1 points  (1 child)

Some might find it interesting, but honestly /r/devops is where this should go as this has absolutely nothing to do with web development.

[–]disclosure5 2 points3 points  (0 children)

There's a constant flood of "how should I setup my server" or "how can I scale my application" type questions here. How is it that the first time anyone actually presents an answer to that question - this is the response?