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

已提問 2 年前檢視次數 207 次
1 個回答
0

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

AWS
專家
Paul_L
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南