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 Risposta
0

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

AWS
ESPERTO
Paul_L
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande