No commit activity in last 3 years
No release in over 3 years
AWS lib for capistrano deploys
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0
~> 3.0

Runtime

~> 2.0
 Project Readme

Capistrano3::Aws

Installation

Add this line to your application's Gemfile:

gem 'applicaster-capistrano3-aws', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install applicaster-capistrano3-aws

Usage

in Capfile:

require 'capistrano3/aws'
include Capistrano3::Aws

in config/deploy.rb:

set :ssm_params_prefix, -> { "/environments/#{fetch(:stage)}/services/#{fetch(:application)}/deployment" }
set :aws_region, "us-east-1"

in config/deploy/production.rb:

servers = ec2_instances([{ name: 'tag:ApplicationName', values: ["encoder"] }], :private_ip_address)) # or :public_dns_name or :public_ip_address
role :app, servers
role :web, ec2_instances([{ name: 'tag:Name', values: ["encoder-web"] }], :private_ip_address)
role :encoders, ec2_instances([{ name: 'tag:Name', values: ["encoder-ffmpeg"] }], :private_ip_address))
role :db, servers.first, primary: true

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/applicaster/applicaster-capistrano3-aws.

License

The gem is available as open source under the terms of the MIT License.