跳至内容

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

已提问 3 年前721 查看次数
2 回答
2
已接受的回答

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.

已回答 3 年前
专家
已审核 1 年前
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.

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。