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

feita há um ano530 visualizações
2 Respostas
2
Resposta aceita

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.

respondido há um ano
profile picture
ESPECIALISTA
avaliado há 4 meses
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.

respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas