Error Adding a lambda function to a cloudfront distribution

0

I have a basic cloudfront distribution that uses a s3 bucket as origin. But when I add a lambda function it shows the following error:

Enter image description here

Here is the distribution configuration:

Enter image description here Enter image description here

Enter image description here

Enter image description here

And the function is set as the padrom for leading with cloudfront. The model is Modify HTTP response Header.

posta 9 mesi fa212 visualizzazioni
1 Risposta
0

Hello.

What does the Lambda function do?
Also, are the required IAM roles set for the Lambda function?
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-permissions.html

profile picture
ESPERTO
con risposta 9 mesi fa
profile pictureAWS
ESPERTO
verificato 8 mesi 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.

Linee guida per rispondere alle domande