Can you use git to deploy to an auto scaling group?

I was hoping to find a robust way to push code to every member auto scaling group, I would like to use git. Is this even possible without rolling my own code discovery code.

Am I barking up the wrong tree should i be using cloud formation instead?

Any help would be greatly appreciated.


Related discussions:

Elastic Beanstalk will automatically create autoscaling group(s) and a loadbalancer and you can commit to it with a git push. see here

I’ve used it before with PHP and it works quite well, even if pushing the local git repo to a central server as well for version control. I would assume the method exists for other platforms in the Elastic Beanstalk system too. (Sorry if none of these line up with what you’re using)

Yup, this. I am doing the same thing and just got this up and running. Works great.

Sweet, it’s actually pretty slick.

These days, OpsWorks is probably a better and more flexible solution than beanstalk as long as you can deal with slightly higher up front costs.

I use capistrano (v2) to deploy changes to my servers.

It’ll pull from the repo, and uses timestamped folders that are symlinked to a current folder when the deploy is complete. I keep the last 5 deployments, making rollback (in theory) easy.

There is an extension (capistrano-ec2group) that will deploy to a dynamic set of servers based on security group.

I’m using this currently to deploy to Rails, WordPress, and HAProxy groups. I’ve found it easiest to use Chef Solo/Packer to setup and bake the AMI for the group, and the Capistrano for deploying (as it’s quicker).

You could also skip Capistrano and just bake new AMIs each time, create a new Launch Config, and then update the Auto Scaling Group appropriately to bring in new instances, depending on how you are set up - I only have 1 self-contained WordPress instance at the moment and have to tolerate 5 minutes downtime if I switch AMIs, whereas with my Rails and HAProxy groups, I can bring up new AMIs first before terminating the old ones.

Yeah, we use Beanstalk for several tomcat/java web apps and also some server applications. One thing to read up on is ‘beanstalk extensions’ as they are SUPER extensible with very little work.

We started off with beanstalk for several projects and looked at OpsWorks for a new project but the amount of work we’d have to do was probably double or triple that of using Beanstalk. Plus the auto-scaling is a little odd with Opsworks as you have to pre-define all your instances.

Can’t say enough about how helpful (and time saving) Beanstalk has been