How to Deploy AWS Auto Scaling Group using Capistrano 3

Motivation If you’ve set up an AWS Auto Scaling Group and need to deploy code to those running EC2 instances, this Capistrano task can streamline the process by targeting only healthy nodes in the group. Requirements aws-sdk-ec2 ~> 1 aws-sdk-autoscaling ~> 1 capistrano ~> 3 Installation In your Rails app’s Gemfile, add: gem 'capistrano3-asg-deploy' Then run: bundle install Or install it yourself as: gem install capistrano3-asg-deploy Add this line to your application’s Capfile: ...

September 19, 2021 · 2 min · Aftab Akram