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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则