AWS Lambda memory limit seems to be too low

0

Trying to set the memory_size to 4096 for a lambda in ca-central-1, and getting the following error:

api error ValidationException: 'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008

I read, though, that it can be as high as 10gb. Didn't see anything here about a 3gb quota for function memory: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html

I'm trying to scale the memory so that I can get move CPU cores. Any help would be appreciated!

Bob
asked 3 months ago210 views
2 Answers
1

Hello.

Your AWS account may have limited memory quotas.
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.

In this case, you will need to contact AWS Support by opening a case under "Account and billing".
https://docs.aws.amazon.com/awssupport/latest/user/case-management.html
https://repost.aws/questions/QUo_cwNNqrQsmoaH4q13b_xA/unable-to-set-lambda-memory-over-3008mb#AN58bAQocCRRm2tG42cfF-WQ

profile picture
EXPERT
answered 3 months ago
1

I read AWS document and found some words can help you:

Error: 'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008

These errors occur when you exceed the concurrency or memory quotas for your account. New AWS accounts have reduced concurrency and memory quotas. To resolve errors related to concurrency, you can request a quota increase. You cannot request memory quota increases.

Concurrency: You might get an error if you try to create a function using reserved or provisioned concurrency, or if your per-function concurrency request (PutFunctionConcurrency) exceeds your account's concurrency quota.

Memory: Errors occur if the amount of memory allocated to the function exceeds your account's memory quota.

To resolve this cases, you can request a quota increase: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html

Refs link about your error: https://docs.aws.amazon.com/lambda/latest/dg/troubleshooting-deployment.html

profile picture
answered 3 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