-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
113 lines (83 loc) · 2.97 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
"""
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
ec2getsnaps:
::
% ec2getsnaps db1
2012-01-28T02:04:18+0000 db1-xlog 100%
ec2sshproxy:
::
~/.ssh/config
Host *.ec2
User ubuntu
ProxyCmd ec2sshproxy %h %p
% ssh my-server-tag.ec2
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
* 1.4 - added ec2sshproxy
* 1.5 - added support for VPC hosts
"""
from setuptools import setup
setup(
name = "ec2-cli-tools",
version = "1.5.2",
author = "Shayne Sweeney & Tyler Smalley & Mike Krieger & Nick Shortway",
author_email = "team@flippath.com",
description = "Helpful CLI utilities for querying and connecting to EC2 instances",
long_description = __doc__,
license = "MIT",
url = "https://github.com/FlipPath/ec2-cli-tools",
keywords = ["amazon", "aws", "ec2", "ami", "ssh", "cloud", "boto"],
install_requires = ['boto>=1.0'],
scripts = ["bin/ec2who", "bin/ec2host", "bin/ec2hostcache", "bin/ec2ssh", "bin/ec2getsnaps", "bin/ec2sshproxy"],
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"
],
)