How to specify credentials when connecting to boto3 S3?

后端 未结 5 2091
我在风中等你
我在风中等你 2020-12-04 08:10

On boto I used to specify my credentials when connecting to S3 in such a way:

import boto
from boto.s3.connection import Key, S3Connection
S3 = S3Connection(         


        
5条回答
  •  情歌与酒
    2020-12-04 09:12

    There are numerous ways to store credentials while still using boto3.resource(). I'm using the AWS CLI method myself. It works perfectly.

    https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html?fbclid=IwAR2LlrS4O2gYH6xAF4QDVIH2Q2tzfF_VZ6loM3XfXsPAOR4qA-pX_qAILys

提交回复
热议问题