Coder Social home page Coder Social logo

claws's Introduction

Command Line AWS (CLAWS) Build Status Code Climate

This tool provides a simple and powerful way to interact with the hosts in your Amazon Web Services account via the command line.

It provides a configurable text based interface of the status of your hosts similar to the AWS web console. An example of its usage appears below:

Instances

It gives you a choice of which host to connect to and invokes the proper ssh command:

Connecting

Installation

It is up on rubygems.org so add it to your bundle in the Gemfile

gem 'claws'

or do it the old fashioned way:

gem install claws

After you have the gem installed you will need to initialize it to install a configuation file:

claws --init

Read more about the configuration file in this wiki post

Usage

Once the initial configuration is completed you can simply run claws from the command line:

claws

The full list of options includes:

Usage: claws [options]
    -d, --display-only               Display host status only and exit
    -c, --choice N                   Enter the number of the host to automatically connect to
    -i, --init                       Install the default configuration file for the application
    -s, --source S                   define the AWS source - default is ec2
    -v, --version                    Display the version number and exit

To Do

  • Add filtering by regular expression for any field

  • Integrate with your projects Capistrano definitions so that one can filter by environment and roles.

  • Add RDS and ELB support

License

Copyright (c) 2011-2014 Wes Bailey

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

claws's People

Contributors

aaronfeng avatar davetapley avatar wbailey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

claws's Issues

Undefined method error - please advise

C:\Users\pmjs>claws
undefined method inject' for #<String:0x248a078> C:/Ruby193/lib/ruby/gems/1.9.1/gems/claws-1.2.0/lib/claws/report/ec2.rb:29:inb
lock in run': undefined method each' for nil:NilClass (NoMethodError) from C:/Ruby193/lib/ruby/gems/1.9.1/gems/command_line_reporter-3.2.1/lib /command_line_reporter.rb:118:intable'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/claws-1.2.0/lib/claws/report/ec
2.rb:16:in run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/claws-1.2.0/lib/claws/command/e c2.rb:19:inexec'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/claws-1.2.0/bin/claws:13:in <t op (required)>' from C:/Ruby193/bin/claws:23:inload'
from C:/Ruby193/bin/claws:23:in `

'

Issue with ID field in .claws.yml causing claws -d to return the object ID for the object and not the instance ID

When I run

claws -d

I get one of these error message per instance:

/home/jamie/.rvm/gems/ruby-1.8.7-p302@jamie/gems/claws-1.1.0/lib/claws/report/ec2.rb:44: warning: Object#id will be deprecated; use Object#object_id

Looking at the claws output from run to run the value for ID changes and is not an EC2 instance ID, which is of the form i-12345678 but is instead a Ruby object ID. Editing .claws.yml and changing the id field from

id:
  title: ID
  width: 10

to

instance_id:
  title: ID
  width: 10

Fixes the problem.

The documentation for amazon-sdk indicates that the instance ID can be accessed via "#id" or "#instance_id".

Thanks,

Jamie

Add Caching

Right now every time you run the tool it queries AWS to get the results. It might be wise to add a command line flag that indicates that it should cache the results locally. A corresponding flag value would invalidate the cache.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.