Thor extension for building CLI to deal with AWS.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install thor-aws
include Thor::Aws to your CLI class. Then you can use private methods such as
#rds to call a instance of
Aws::EC2::Resource or so in your CLI.
--profile options will be added to your CLI (of course, these credentials are used by Aws clients).
require "thor" require "thor/aws" class MyAwsCLI < Thor include Thor::Aws desc :list, "Show list of EC2 instance" def list p ec2.instances.to_a end end
bundle install --path vendor/bundle bundle exec rake spec
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request