Access denied on aws lambda function when getObject from S3 bucket

前端 未结 2 1324
逝去的感伤
逝去的感伤 2020-12-18 15:48

I\'m using the default code for a lambda function:

console.log(\'Loading function\');

var aws = require(\'aws-sdk\');
var s3 = new aws.S3({ apiVersion: \'20         


        
2条回答
  •  无人及你
    2020-12-18 16:27

    Check the IAM permissions of the role you want to use, maybe there are deny permissions above allow permissions.

提交回复
热议问题