This repository has examples of using Capistrano with instances managed by AWS OpsWorks.
- Run
bundle installto install capistrano itself and the AWS SDK for Ruby - Run
bundle exec cap meta populateto generate stages in config/deploy/ - Run
bundle exec cap <name-of-one-of-your-stacks> consoleto get a console for interactively running commands - Run
bundle exec cap <name-of-one-of-your-stacks> run COMMAND=uptimeto run theuptimecommand on all instances
- requires ssh_key_name in your OpsWorks instances to point at a key that is available by default, that is, without having to specify the -i option when you would manually
sshinto the instance