Coder Social home page Coder Social logo

sawsh's Introduction

sawsh

FOSSA Status

SSH wrapper for aws to make your life easier.

Features

  • Lookup AWS EC2 instances by name.
  • Lookup ip by ip-xxx.xxx.xxx.xxx format.
  • Transparant connect to ip

Usage

$ sawsh webserver

This example will query AWS for a EC2 instance containing the name webserver. It will prompt you with a choise when more than one result is found.

$ sawsh webserver
listing instances with tag core in: us-east-1
+---+--------------------+-------------+
|   |       NAME         |      IP     |
+---+--------------------+-------------+
| 0 | prod-webserver-1   | 10.1.1.10   |
| 1 | prod-webserver-2   | 10.1.2.10   |
| 2 | prod-webserver-3   | 10.1.3.10   |
| 3 | prod-webserver-4   | 10.1.1.11   |
| 4 | prod-webserver-5   | 10.1.2.11   |
| 5 | prod-webserver-6   | 10.1.3.11   |
+---+--------------------+-------------+
Pick a number: 1
Connecting to 10.1.2.10 ...
$ sawsh -h
NAME:
   sawsh - Query and connect to ec2 instances

USAGE:
   sawsh [global options] command [command options] [filter]

COMMANDS:
     list     Render a list of instances
     connect  Search and connect to an instance
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help

COPYRIGHT:
   (c) Dries De Peuter <[email protected]>

Install

Official release

Download the latest release.

$ wget https://github.com/NoUseFreak/sawsh/releases/download/0.1.0/darwin_amd64.tar.gz  -O - | tar -xz
$ sudo mv ./sawsh /usr/local/bin/sawsh

Build from source

$ git clone https://github.com/NoUseFreak/sawsh.git
$ cd sawsh
$ make
$ make install

Upgrade

To upgrade to the latest repeat the install step.

Configure

Setup sure your aws-cli is setup. That user needs ec2:Describe* permissions.

Suggestion

It may be useful to setup some aliases if you use multiple aws accounts or want it to run with a non standard profile.

$ alias prod_ssh='AWS_PROFILE=prod sawsh'

License

FOSSA Status

sawsh's People

Contributors

nousefreak avatar fossabot avatar

Watchers

James Cloos avatar Rob Swartenbroekx avatar

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.