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 年前檢視次數 767 次
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
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南