dimanche 19 avril 2015

connect to aws using boto - credentials error

Im trying to connect to aws using boto but Im having an error.


First, I created an aws account and then in managment console I clicked in IAM and I created a new user.


This user have associated a AWS_ACESS_KEY_ID and a AWS_SECRET_ACESS_KEY.


And then I stored this user credentials in /etc/boto.cfg and in ~/.boto, like this:



[Credentias]
aws_acess_key_id = ...
aws_secret_acess_key = ...


Now Im trying to connect to boto but Im having this error:



Traceback (most recent call last):
File "send.py", line 12, in <module>
s3 = boto.connect_s3()
File "/usr/local/lib/python2.7/dist-packages/http://ift.tt/1G7lbon", line 141, in connect_s3
return S3Connection(aws_access_key_id, aws_secret_access_key, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/http://ift.tt/1H2pUKR", line 190, in __init__
validate_certs=validate_certs, profile_name=profile_name)
File "/usr/local/lib/python2.7/dist-packages/http://ift.tt/1G7lbEI", line 569, in __init__
host, config, self.provider, self._required_auth_capability())
File "/usr/local/lib/python2.7/dist-packages/http://ift.tt/1H2pUKT", line 985, in get_auth_handler
'Check your credentials' % (len(names), str(names)))
boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV1Handler'] Check your credentials


Do you see what can be wrong here?





Aucun commentaire:

Enregistrer un commentaire