Lambda edge function failed after Runtime upgrade

0

Hi,

After I upgraded the lambda runtime to nodejs16 and run AWS codepipeline which failed with the following error:

Resource handler returned message: "Invalid request provided: The function timeout is larger than the maximum allowed for functions that are triggered by a CloudFront event: 60 Max allowed: 30 Function: arn:aws:lambda:us-east-1:xxxxxxxxxxxx:function:doc-check:55 (Service: CloudFront, Status Code: 400, Request ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)" (RequestToken: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx, HandlerErrorCode: InvalidRequest)

Can anyone help me fix it please? Many thanks Del

asked 2 years ago192 views
1 Answer
0

Have you adjusted the function timeout to a maximum of 30s as suggested by the error message?

AWS
EXPERT
Paul_L
answered 2 years 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