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
Forked by @adamchainz
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
ec2-ssh-yplan-1.3.0.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file ec2-ssh-yplan-1.3.0.tar.gz
.
File metadata
- Download URL: ec2-ssh-yplan-1.3.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a264425ad62145d00775f8925adebae94fb8e8aa2b8e9a453e4d808cedfd53 |
|
MD5 | 113d94119fb8806760e1c224ce0c84c2 |
|
BLAKE2b-256 | 11bf21b6cd88c900c4c95b81722ad8c9f8a03b1deda1d60746928e7423668f9b |
File details
Details for the file ec2_ssh_yplan-1.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: ec2_ssh_yplan-1.3.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 | 49933d09b1be438b78f085f7b8b5cc51ac0caaf159ce90393f2c04cee68abe59 |
|
MD5 | 29b0c811d09027f377feef303f695734 |
|
BLAKE2b-256 | 5a34be361225bd9e4dd5d9ffe8d104d5c12bb546a128fac7fd8cd41a79444ee9 |