GithubHelp home page GithubHelp logo

ec2s's Introduction

ec2s

EC2 instance operation tool with ssh, peco.

WARNING: This project is under development.

wercker status Code Climate Issue Count Go Report Card

GoDoc

Configure

$ cat ~/.ec2s
[aws]
AWS_ACCESS_KEY_ID="xxxx"
AWS_SECRET_ACCESS_KEY="yyyy"
AWS_REGION="ap-northeast-1"

[peco]
path = "/path/to/peco"

[ssh]
port = 22
user = "my-user"

[[ssh.identity_file]]
name = "my_keypair"
path = "~/.ssh/my_keypair.private_key"

[[ssh.identity_file]]
name = "my_other_keypair"
path = "~/.ssh/my_other_keypair.private_key"

[common]
colorized_output = true

Usage

list subcommand

# show ec2 instances
$ ec2s list

# show ec2 instances in the vpc
$ ec2s list -vpc-id vpc-xxxx

$ ec2s list -vpc-name vpcname

ssh subcommand

# login via ssh to the ec2 instance.
$ ec2s ssh

$ ec2s ssh -vpc-id vpc-xxxx

$ ec2s ssh -vpc-name vpcname

scp subcommand

$ ec2s scp local ec2:/path/to

$ ec2s scp ec2:/path/to local

vpcs subcommand

# show vpcs
$ ec2s vpcs

HowToBuild

$ glide install && go build

Release Flow

  1. bump version on master branch.
  2. Create pull request from master branch to release branch.
  3. Merge !
  4. wercker CI will create new release assets.
  5. Add tag to new version & push.

License

MIT License

Contributing

  1. Fork it ( https://github.com/[my-github-username]/ec2_meta/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

ec2s's People

Contributors

hirakiuc avatar

Watchers

James Cloos 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.