Skip to content
Jared Markell edited this page Apr 9, 2014 · 2 revisions

Welcome to the opsworks-scripts wiki!

Sample usage of execute-instance-recipes.rb.

To use the script, the preferred way is to utilize environmental variables with CodeShip. CodeShip AWS Environment Variables

Then create your CodeShip deployment pipeline script, as such.

# install aws command line tools
pip install awscli
# grab execute script
wget https://raw.githubusercontent.com/jaredm4/opsworks-scripts/master/execute-instance-recipes.rb
# run publish recipes
ruby execute-instance-recipes.rb $MY_OPSWORKS_STACK $MY_OPSWORKS_STACK_LAYER '["my_cookbook::my_recipe"]' '{"foo": "bar"}'

Clone this wiki locally