Helpful CLI utilities for querying and connecting to EC2 instances
Project description
EC2-CLI-Tools
=======
Helpful CLI utilities to filter and connect to EC2 instances.
ec2who:
::
% ec2who nginx2
# or
% ec2who 10.13.12.205
# or
% ec2who ec2-204-236-192-148
nginx2 i-d5236fbd us-east-1c 10.13.12.205 ec2-204-236-192-148.compute-1.amazonaws.com
% ec2who "nginx*"
nginx1 i-d5236fbd us-east-1c 10.13.12.205 ec2-204-236-192-148.compute-1.amazonaws.com
nginx2 i-d5237fbd us-east-1c 10.13.12.206 ec2-204-236-192-149.compute-1.amazonaws.com
nginx3 i-d5238fbd us-east-1c 10.13.12.207 ec2-204-236-192-150.compute-1.amazonaws.com
% ec2who "10.*.207"
nginx3 i-d5238fbd us-east-1c 10.13.12.207 ec2-204-236-192-150.compute-1.amazonaws.com
ec2ssh and ec2host:
::
% ec2ssh nginx2
# equivalent to
# ssh ubuntu@ec2-123-45-67-89.compute-1.amazonaws.com
% ec2ssh root@appserver
% ec2ssh deploy@nginx2 sudo restart nginx
# accompanying ec2host script
# w/o arg: prints all active instances
% ec2host
django1 ec2-123-45-67-89.compute-1.amazonaws.com
django2 ec2-132-45-67-89.compute-1.amazonaws.com
django3 ec2-231-45-67-89.compute-1.amazonaws.com
# w/ arg: prints host name of matching instance
% ec2host django2
django2 ec2-132-45-67-89.compute-1.amazonaws.com
ec2getsnaps:
::
% ec2getsnaps db1
2012-01-28T02:04:18+0000 db1-xlog 100%
ec2sshproxy:
::
~/.ssh/config
Host *.ec2
User ubuntu
ProxyCmd ec2sshproxy %h %p
% ssh my-server-tag.ec2
Links
`````
* `Original Project, ec2-ssh <http://github.com/Instagram/ec2-ssh>`
* `Instagram <http://instagram.com>`
Changelog
`````````
* 1.0 - initial release, addition of ec2who and migration of deprecated ec2ssh project
* 1.4 - added ec2sshproxy
* 1.5 - added support for VPC hosts
=======
Helpful CLI utilities to filter and connect to EC2 instances.
ec2who:
::
% ec2who nginx2
# or
% ec2who 10.13.12.205
# or
% ec2who ec2-204-236-192-148
nginx2 i-d5236fbd us-east-1c 10.13.12.205 ec2-204-236-192-148.compute-1.amazonaws.com
% ec2who "nginx*"
nginx1 i-d5236fbd us-east-1c 10.13.12.205 ec2-204-236-192-148.compute-1.amazonaws.com
nginx2 i-d5237fbd us-east-1c 10.13.12.206 ec2-204-236-192-149.compute-1.amazonaws.com
nginx3 i-d5238fbd us-east-1c 10.13.12.207 ec2-204-236-192-150.compute-1.amazonaws.com
% ec2who "10.*.207"
nginx3 i-d5238fbd us-east-1c 10.13.12.207 ec2-204-236-192-150.compute-1.amazonaws.com
ec2ssh and ec2host:
::
% ec2ssh nginx2
# equivalent to
# ssh ubuntu@ec2-123-45-67-89.compute-1.amazonaws.com
% ec2ssh root@appserver
% ec2ssh deploy@nginx2 sudo restart nginx
# accompanying ec2host script
# w/o arg: prints all active instances
% ec2host
django1 ec2-123-45-67-89.compute-1.amazonaws.com
django2 ec2-132-45-67-89.compute-1.amazonaws.com
django3 ec2-231-45-67-89.compute-1.amazonaws.com
# w/ arg: prints host name of matching instance
% ec2host django2
django2 ec2-132-45-67-89.compute-1.amazonaws.com
ec2getsnaps:
::
% ec2getsnaps db1
2012-01-28T02:04:18+0000 db1-xlog 100%
ec2sshproxy:
::
~/.ssh/config
Host *.ec2
User ubuntu
ProxyCmd ec2sshproxy %h %p
% ssh my-server-tag.ec2
Links
`````
* `Original Project, ec2-ssh <http://github.com/Instagram/ec2-ssh>`
* `Instagram <http://instagram.com>`
Changelog
`````````
* 1.0 - initial release, addition of ec2who and migration of deprecated ec2ssh project
* 1.4 - added ec2sshproxy
* 1.5 - added support for VPC hosts
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ec2-cli-tools-1.5.tar.gz
(5.9 kB
view details)
File details
Details for the file ec2-cli-tools-1.5.tar.gz
.
File metadata
- Download URL: ec2-cli-tools-1.5.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bd5d8cf71afae623f15c9050c56f9d8568d879c1695d7279081a4d961ce50a8 |
|
MD5 | 95846b611b082c2c8346cef44e8d3746 |
|
BLAKE2b-256 | c857d78ec9e2c3c7a00ee83392e20393f8029f1473c9fe56c883fe2e2b696645 |