O'Reilly Forums: Boto Not Reading Credentials From /etc/boto.cfg - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Boto Not Reading Credentials From /etc/boto.cfg

#1 User is offline   dansbecker 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 09-March 12

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users