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

preguntada hace 2 años207 visualizaciones
1 Respuesta
0

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

AWS
EXPERTO
Paul_L
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas