aws lambda function getting access denied when getObject from s3

后端 未结 12 1515
离开以前
离开以前 2020-12-08 06:44

I am getting an acccess denied error from S3 AWS service on my Lambda function.

This is the code:

// dependencies
var async = require(\'async\');
var         


        
12条回答
  •  囚心锁ツ
    2020-12-08 07:08

    I was getting the same error "AccessDenied: Access Denied" while cropping s3 images using lambda function. I updated the s3 bucket policy and IAM role inline policy as per the document link given below.

    But still, I was getting the same error. Then I realised, I was trying to give "public-read" access in a private bucket. After removed ACL: 'public-read' from S3.putObject problem get resolved.

    https://aws.amazon.com/premiumsupport/knowledge-center/access-denied-lambda-s3-bucket/

提交回复
热议问题