2.20.1-2ubuntu2 - python2.7-boto
Python 2.7.6
from boto import ec2connection = ec2.connect_to_region('us-east-1')print connection.get_all_instances()
[default]
aws_access_key_id = <my access key id>
aws_secret_access_key = <my secret access key>
$ aws s3 ls
2013-11-05 20:52:45 my-bucket-1
2013-11-08 19:53:41 my-bucket-2$ python test_boto.py
Traceback (most recent call last): File "test_boto.py", line 2, in <module> connection = ec2.connect_to_region('us-east-1') File "/usr/lib/python2.7/dist-packages/boto/ec2/__init__.py", line 82, in connect_to_region return region.connect(**kw_params) File "/usr/lib/python2.7/dist-packages/boto/regioninfo.py", line 63, in connect return self.connection_cls(region=self, **kw_params) File "/usr/lib/python2.7/dist-packages/boto/ec2/connection.py", line 100, in __init__ validate_certs=validate_certs) File "/usr/lib/python2.7/dist-packages/boto/connection.py", line 1043, in __init__ validate_certs=validate_certs) File "/usr/lib/python2.7/dist-packages/boto/connection.py", line 559, in __init__ host, config, self.provider, self._required_auth_capability()) File "/usr/lib/python2.7/dist-packages/boto/auth.py", line 732, in get_auth_handler 'Check your credentials' % (len(names), str(names)))boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['QuerySignatureV2AuthHandler'] Check your credentials
aws_access_key_id = <my access key id>
aws_secret_access_key = <my secret access key>
$ aws s3 ls
Traceback (most recent call last): File "/usr/local/bin/aws", line 23, in <module> sys.exit(main()) File "/usr/local/bin/aws", line 19, in main return awscli.clidriver.main() File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 60, in main driver = create_clidriver() File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 68, in create_clidriver load_plugins(session.full_config.get('plugins', {}), File "/usr/local/lib/python2.7/dist-packages/botocore/session.py", line 386, in full_config cred_profiles = botocore.config.raw_config_parse(cred_file) File "/usr/local/lib/python2.7/dist-packages/botocore/config.py", line 132, in raw_config_parse raise botocore.exceptions.ConfigParseError(path=path)botocore.exceptions.ConfigParseError: Unable to parse config file: /home/joe/.aws/credentials
$ python test_boto.py
[Reservation:r-12345678a, Reservation:r-12345678b]
--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boto-users+...@googlegroups.com.
To post to this group, send email to boto-...@googlegroups.com.
Visit this group at http://groups.google.com/group/boto-users.
For more options, visit https://groups.google.com/d/optout.