No commit activity in last 3 years
No release in over 3 years
deploy application using OpsWorks API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 10.0

Runtime

 Project Readme

Capistrano::OpsworksDeploy

deploy app using AWS OpsWorks API with capistrano 3

Installation

Add this line to your application's Gemfile:

gem 'capistrano-opsworks_deploy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-opsworks_deploy

Usage

Add this line to Capfile

require 'capistrano/opsworks_deploy'

Set AWS credentials to environment variables

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...

Write OpsWorks settings to deploy config file

set :opsworks_stack_id, '...'
set :opsworks_app_id, '...'
set :opsworks_instance_ids, ['...']

Deploy app

$ cap opsworks:deploy

Deploy app with migration

$ cap opsworks:deploy:migrate

Show deploy history

$ cap opsworks:deploy:history
+---------------------------+-----------------+-------------------------------+------------+
| created_at                | command         | args                          | status     |
+---------------------------+-----------------+-------------------------------+------------+
| 2014-11-05T14:27:07+00:00 | deploy          | {"migrate"=>["true"]}         | successful |
| 2014-11-05T08:18:49+00:00 | deploy          | {"migrate"=>["true"]}         | successful |
| 2014-11-04T13:53:43+00:00 | deploy          | {"migrate"=>["true"]}         | successful |
...

Executing recipes

You can also execute recipes by writing task

desc 'execute recipe foobar'
task :foobar do
  set :opsworks_recipes, 'foobar'
  invoke 'opsworks:execute_recipes'
end

Contributing

  1. Fork it ( https://github.com/tkeo/capistrano-opsworks_deploy/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 a new Pull Request