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개 답변
0

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

답변함 2년 전
  • 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
전문가
답변함 일 년 전

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

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

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