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개 답변
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달 전

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

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

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

관련 콘텐츠