Skip to main content

Helpful CLI utilities for querying and connecting to EC2 instances

Project description


Helpful CLI utilities to filter and connect to EC2 instances.



% ec2who nginx2
# or
% ec2who
# or
% ec2who ec2-204-236-192-148
nginx2 i-d5236fbd us-east-1c

% ec2who "nginx*"
nginx1 i-d5236fbd us-east-1c
nginx2 i-d5237fbd us-east-1c
nginx3 i-d5238fbd us-east-1c

% ec2who "10.*.207"
nginx3 i-d5238fbd us-east-1c

ec2ssh and ec2host:


% ec2ssh nginx2
# equivalent to
# ssh

% ec2ssh root@appserver
% ec2ssh deploy@nginx2 sudo restart nginx

# accompanying ec2host script

# w/o arg: prints all active instances
% ec2host

# w/ arg: prints host name of matching instance
% ec2host django2


% ec2getsnaps db1
2012-01-28T02:04:18+0000 db1-xlog 100%



Host *.ec2
User ubuntu
ProxyCmd ec2sshproxy %h %p

% ssh my-server-tag.ec2


* `Original Project, ec2-ssh <>`
* `Instagram <>`


* 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.

Filename, size & hash SHA256 hash help File type Python version Upload date
ec2-cli-tools-1.5.tar.gz (5.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page