Why are no Amazon S3 authentication handlers ready?

后端 未结 12 1990
广开言路
广开言路 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:16

    You can now set these as arguments in the connect function call.

    s3 = boto.connect_s3(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
    

    Just thought I'd add that incase anyone else searched like I did.

提交回复
热议问题