QuestionQ71

VerifiedIdentity and Access Management

A security engineer is troubleshooting an AWS Lambda function named MyLambdaFunction. The function receives an error when it tries to read objects in an Amazon S3 bucket named DOC-EXAMPLE-BUCKET. The S3 bucket has the following bucket policy:

Question Image

Which policy change should the security engineer make so that the Lambda function can read the bucket objects?

Explanation

s3:GetObject is an S3 object operation, so its policy Resource must be an object ARN. Appending /* to arn:aws:s3:::DOC-EXAMPLE-BUCKET grants access to the objects in that bucket rather than only identifying the bucket itself. AWS documents arn:aws:s3:::bucket-name/* as the required resource form for object operations such as GetObject.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!