Repository is archived
No commit activity in last 3 years
No release in over 3 years
capistrano_ec2_role builds a target server from a tag of ec2 dynamically
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

~> 1.41.0
>= 2.13.5
 Project Readme

capistrano_ec2_role

Capistrano plugin for ec2

Installation

Add this line to your application's Gemfile:

gem 'capistrano_ec2_role', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano_ec2_role

Usage

need set ec2 tags on AWS

ec2_tag

Capistrano3

# Capfile
require 'capistrano_ec2_role'
# config/deploy.rb
set :ec2_deploy_tag_name, 'role' # default is 'role'
set :aws_access_key_id, '...'
set :aws_secret_access_key, '...'
set :aws_region, '...'
# config/deploy/*.rb
ec2_role :web, 'web'
ec2_role :app, 'app'
ec2_role :db, 'db'

Capistrano2

# config/deploy.rb
require 'capistrano_ec2_role'

set :ec2_deploy_tag_name, 'role' # default is 'role'
set :aws_access_key_id, '...'
set :aws_secret_access_key, '...'
set :aws_region, '...'

ec2_role :web, 'web'
ec2_role :app, 'app'
ec2_role :db, 'db', primary: true

Contributing

  1. Fork it ( http://github.com//capistrano_ec2_role/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request