Cannot create the AWS::Lambda::Function stack in CloudFormation

0

When creating a AWS::Lambda::Function, CloudFormation threw the error:

Resource handler returned message: "'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008 (Service: Lambda, Status Code: 400, Request ID: 4da8681c-2412-4561-b667-bb983ecd42e0)" (RequestToken: b41b436a-7594-afcd-f48e-f5b9131aff2d, HandlerErrorCode: InvalidRequest)

After checking the AWS Lambda quota, Function memory maximum is 10,240 megabytes. It is not aligned with the 3008 (MB) shown above.

jonas
已提問 8 個月前檢視次數 622 次
3 個答案
0

Hiya,

The newer AWS Lambda API allows you to create functions with up to 10,240 MB of memory. However, if you are creating a function using AWS CloudFormation, you will need to use the older API and the maximum memory size will be 3008 MB.

To resolve this issue, you can either:

Use the newer AWS Lambda API to create the function. Use AWS CloudFormation to create the function, but specify a memory size of 3008 MB or less.

profile picture
已回答 8 個月前
0

Hi,

Unfortunately you are not the first one this happens to, so if your account quota shows 10GB, I recommend that you open a support case.

profile picture
專家
已回答 8 個月前
0

Hello.

Lambda memory quotas are set low for new accounts, so even if the quota is 10 GB, it may actually be limited.
So, please apply for the lifting of restrictions from the service quota.
https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html

New AWS accounts have reduced concurrency and memory quotas. AWS raises these quotas automatically based on your usage. You can also request a quota increase.

profile picture
專家
已回答 8 個月前

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

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

回答問題指南