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.

asked 8 months ago204 views
1 Answer
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
EXPERT
answered 8 months ago
profile pictureAWS
EXPERT
reviewed 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions