ec2s
EC2 instance operation tool with ssh, peco.
WARNING: This project is under development.
GoDoc
$ 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
License
MIT License
Contributing
- Fork it ( https://github.com/[my-github-username]/ec2_meta/fork )
- 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