SSH into EC2 instances via tag name
Project description
A pair of command line utilities for finding and SSH-ing into your Amazon EC2 instances by tag (such as ‘Name’).
Forked from Instagram original code by YPlan.
Installation
From pip:
pip install ec2-ssh-yplan
Usage
# ec2-ssh
% ec2-ssh nginx2
# equivalent to
# ssh ubuntu@ec2-123-45-67-89.compute-1.amazonaws.com
% ec2-ssh root@appserver
% ec2-ssh deploy@nginx2 sudo restart nginx
# ec2-host
# w/o arg: prints all active instances
% ec2-host
ec2-123-45-67-89.compute-1.amazonaws.com
ec2-132-45-67-89.compute-1.amazonaws.com
ec2-231-45-67-89.compute-1.amazonaws.com
# w/ arg
% ec2-host backend
ec2-132-45-67-89.compute-1.amazonaws.com
ec2-132-45-67-90.compute-1.amazonaws.com
# w/ tag arg too
% ec2-host -t environment production
ec2-132-45-67-90.compute-1.amazonaws.com
ec2-111-45-67-90.compute-1.amazonaws.com
History
Pending
Next version release notes here
1.4.0 (2016-01-07)
ec2-ssh rewritten in Python. As part of this, the automatic ‘pretty prompt’ has been removed.
1.3.0 (2016-01-06)
Forked by YPlan
Output from ec2-host is now in random order, allowing ec2-ssh to spread logins between similar instances
Python 3 compatibility
1.2.1 (2011-11-27)
Fix issue when ec2-host finds one offline instance with same name as an online instance
1.2 (2011-11-27)
Merged pull requests to add region and tag support
1.1.1 (2011-11-17)
Add line echoing host before establishing SSH connection
1.1 (2011-11-15)
override prompt (PS1) to show tag name
1.0 (2011-09-05)
initial release
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
Built Distribution
File details
Details for the file ec2-ssh-yplan-1.4.0.tar.gz
.
File metadata
- Download URL: ec2-ssh-yplan-1.4.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9972fed9fe473347dcbdc55adeb991af999b698514bb39743a066c735d66c6f7 |
|
MD5 | af56cb820718b9382219b057105727a2 |
|
BLAKE2b-256 | d524f2fd70e1a9e6e8c0fda5e522e1ed7e4d667ede1fe8a2de7c855c47df2329 |
File details
Details for the file ec2_ssh_yplan-1.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: ec2_ssh_yplan-1.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb0cdf6b8dc262fdaa9ddf471509c2532708c5ccac823bdd70b88e764d6e2e0e |
|
MD5 | b9333352d9b38754b2af99d6682e8d09 |
|
BLAKE2b-256 | 1f432d68bd24c0e63b4a8698d9376fba127ec322c05c50a5486c11b2aceff869 |