Skip to main content
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


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

Release files for ec2-cli-tools 1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ec2-cli-tools 1
File Size Uploaded
ec2-cli-tools-1.tar.gz 4.6 kB Details

Release files / ec2-cli-tools-1.tar.gz

Download URL ec2-cli-tools-1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fcef3d619d39e0995a30c50a713cde42f510a7805a5b4dc7b490d1afe694c03f
BLAKE2b-256 checksum
How to use checksums
919e4f759c85485127a9fa6b7a8612b78fce48b4f0f62fce963e09a24a22ca34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.5

1 release file

1.4

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3

1 release file

1.2

1 release file

This release

1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page