Jump to content


Photo

Boto Not Reading Credentials From /etc/boto.cfg


  • Please log in to reply
No replies to this topic

#1 dansbecker

dansbecker

    New Member

  • Members
  • Pip
  • 1 posts

Posted 09 March 2012 - 07:08 PM

I put my credentials in /etc/boto.cfg as suggested on pages 6-7 of the AWS and python cookbook, and I got an error

boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked.

However putting the credentials in ~/.bashrc resolved this problem (as did manually entering them as

import boto
ec2 = boto.connect_ec2(aws_access_key_id='xxxxxxxx', aws_secret_access_key='xxxxxxx')

has anyone else had similar problems?

I'm keeping them in .bashrc for now, but it would be nice to figure out how to keep them only in /etc/boto.cfg (I also tried keeping them in ~/.boto and that also didn't work)

Dan




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users