Lambda@Edge - Unable to increase memory size

0

Hello,

Trusted Advisor gave me a performance recommandation which was to increase the memory size of some of my Lamda@Edge from 128Mo to at least 160Mo. Enter image description here

So I proceeded to the update using Cloudformation but the deploy failed: Enter image description here

I guess the under-provisioned memory side for functions check should be reviewed in order to ignore memory size increase for lambdas attached to Cloudfront; or, Lambda@Edge could accept memory size limit above 128Mo

Did anyone else encounter this same problem ?

Thank you in advance,

2 Risposte
0

For Lambda functions triggered by View request or Viewer response event, memory is capped at 128MB. Can you verify that?

con risposta 2 anni fa
  • Yes, it is (as Cloudformation deploy error shows). Knowing this limitation, I don't know why AWS Trusted Advisor recommends me to increase it to 160MB

  • Could be the case that Trusted Advisor only considers computation metrics

0

Lambda@Edge has a number of limitations, one of which is a maximum of 128MB memory size for viewer request and viewer response events. This does not apply to origin request and origin response events.

You can find this limit and others here https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html#limits-lambda-at-edge

profile pictureAWS
ESPERTO
con risposta un anno 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