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.

3 Answers
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
answered 7 months ago
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
EXPERT
answered 7 months ago
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
EXPERT
answered 7 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