Boto3 Error: botocore.exceptions.NoCredentialsError: Unable to locate credentials

后端 未结 12 2254
逝去的感伤
逝去的感伤 2020-11-30 23:00

When I simply run the following code, I always gets this error.

s3 = boto3.resource(\'s3\')
    bucket_name = \"python-sdk-sample-%s\" % uuid.uuid4()
    pri         


        
12条回答
  •  死守一世寂寞
    2020-11-30 23:44

    If you're sure you configure your aws correctly, just make sure the user of the project can read from ./aws or just run your project as a root

提交回复
热议问题