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

1개 답변
0

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

AWS
전문가
Paul_L
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠