Why are no Amazon S3 authentication handlers ready?

后端 未结 12 2118
广开言路
广开言路 2020-12-13 08:21

I have my $AWS_ACCESS_KEY_ID and $AWS_SECRET_ACCESS_KEY environment variables set properly, and I run this code:

import boto
conn = boto.connect_s3()
         


        
12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 09:03

    I had previously used s3-parallel-put successfully but it inexplicably stopped working, giving the error above. This despite having exported the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

    The solution was to specify the the credentials in the boto config file:

    $ nano ~/.boto
    

    Enter the credentials like so:

    [Credentials]
    aws_access_key_id = KEY_ID
    aws_secret_access_key = SECRET_ACCESS_KEY
    

提交回复
热议问题