forked from facebookarchive/ec2-ssh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (62 loc) · 2.13 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"""
EC2-SSH
=======
A simple command line utility, allowing you to SSH into you Amazon EC2 instances
by their "Name" tag.
A few examples:
::
% ec2-ssh nginx2
# equivalent to
# ssh [email protected]
% ec2-ssh root@appserver
% ec2-ssh deploy@nginx2 sudo restart nginx
# accompanying ec2-host script
# w/o arg: prints all active instances
% ec2-host
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
% ec2-host django2
django2 ec2-132-45-67-89.compute-1.amazonaws.com
Links
`````
* `Website <http://github.com/Instagram/ec2-ssh>`_
* `Instagram <http://instagram.com>`_
Changelog
`````````
* 1.0 - initial release
* 1.1 - override prompt (PS1) to show tag name
* 1.1.1 - Add line echoing host before establishing SSH connection
* 1.2 - Merged pull requests to add region and tag support
* 1.2.1 - Fix issue when ec2-host finds one offline instance with same name as an online instance
"""
import os
from setuptools import setup
setup(
name = "ec2-ssh",
version = "1.2.1",
author = "Shayne Sweeney",
author_email = "[email protected]",
description = "SSH into EC2 instances via tag name",
long_description = __doc__,
license = "MIT",
url = "https://github.com/Instagram/ec2-ssh",
keywords = ["amazon", "aws", "ec2", "ami", "ssh", "cloud", "boto"],
install_requires = ['boto>=1.0'],
scripts = ["bin/ec2-host", "bin/ec2-ssh"],
classifiers = [
"Programming Language :: Python",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Utilities"
],
)