Saltar al contenido

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

preguntada hace 3 años721 visualizaciones
2 Respuestas
2
Respuesta aceptada

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 hace 3 años
EXPERTO
revisado hace un año
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 hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.