Salta al contenuto

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 Risposte
2
Risposta accettata

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.

con risposta 2 anni fa
ESPERTO
verificato un anno fa
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.

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.