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

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

answered a year ago
  • 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
EXPERT
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions