CloudFront with S3 Object Lambda Access Point

0

'https://aws.amazon.com/ko/blogs/korea/new-use-amazon-s3-object-lambda-with-amazon-cloudfront-to-tailor-content-for-end-users/' In the AWS blog post above, we are testing the S3 Object Lambda Access Point and CloudFront integration.

However, as shown in the screenshot, 'The caller is not authorized to invoke the Lambda function' error occurs. I have added the Principal : cloudfront.amazonaws.com permission to the Lambda function's resource-based policy.

error lambda based policy lambda execution policy

2 Answers
2
Accepted Answer

When configuring the S3 Object Lambda Access Point, it was confirmed that an error occurred when the optional Lambda version was specified.

So I solved the problem without specifying the version.

answered a year ago
profile picture
EXPERT
reviewed 3 months ago
0

Not specifying Lambda version indeed solved our problem too! The UI is so buggy that, even without choosing the Lambda version, the UI summary still shows version as '$LATEST', however, as long as user did not check the optional version box and did not type the word '$LATEST', it seems to work properly.

cduan
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions