Instagram/ec2-ssh — Issue #3: Is this working at all?
Author: maedox
Created: 2011-10-20 08:38:46+00:00
State: open

Using Ubuntu 11.04 x86_64, I can't get this to work.
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)

I have exported the AWS key and secret key as environment variables, and changed the shebang on ec2-ssh to #!/bin/bash.

~ $ ec2-host
Traceback (most recent call last):
File "/usr/local/bin/ec2-host", line 5, in
pkg_resources.run_script('ec2-ssh==1.0', 'ec2-host')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 467, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1200, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/ec2_ssh-1.0-py2.7.egg/EGG-INFO/scripts/ec2-host", line 113, in
main(sys.argv[1:])
File "/usr/local/lib/python2.7/dist-packages/ec2_ssh-1.0-py2.7.egg/EGG-INFO/scripts/ec2-host", line 103, in main
list_instances()
File "/usr/local/lib/python2.7/dist-packages/ec2_ssh-1.0-py2.7.egg/EGG-INFO/scripts/ec2-host", line 33, in list_instances
instance_name = instance.tags.get("Name")
AttributeError: 'Instance' object has no attribute 'tags'

~ $ ec2-ssh GNS
Traceback (most recent call last):
File "/usr/local/bin/ec2-host", line 5, in
pkg_resources.run_script('ec2-ssh==1.0', 'ec2-host')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 467, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1200, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/ec2_ssh-1.0-py2.7.egg/EGG-INFO/scripts/ec2-host", line 113, in
main(sys.argv[1:])
File "/usr/local/lib/python2.7/dist-packages/ec2_ssh-1.0-py2.7.egg/EGG-INFO/scripts/ec2-host", line 110, in main
print_host(name)
File "/usr/local/lib/python2.7/dist-packages/ec2_ssh-1.0-py2.7.egg/EGG-INFO/scripts/ec2-host", line 43, in print_host
instances = ec2_instances(filters=filters)
File "/usr/local/lib/python2.7/dist-packages/ec2_ssh-1.0-py2.7.egg/EGG-INFO/scripts/ec2-host", line 58, in ec2_instances
for reservation in _ec2.get_all_instances(**kwargs):
TypeError: get_all_instances() got an unexpected keyword argument 'filters'