Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MemorySize issue with lambda function #9

Open
alifatmi opened this issue Nov 20, 2023 · 2 comments
Open

MemorySize issue with lambda function #9

alifatmi opened this issue Nov 20, 2023 · 2 comments

Comments

@alifatmi
Copy link

while running the code in the step of "cdk deploy LexGenAIDemoFilesStack" i receive error , below is the error

❌ LexGenAIDemoFilesStack failed: Error: The stack named LexGenAIDemoFilesStack failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: 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: c44f0e2d-457d-4c11-837e-35da515dfa2f)

how to resolve it,
i also requested in service quota of lambda service to increase concurrency , but after increment still problem is there.

@alifatmi
Copy link
Author

in code lex_gen_ai_demo_cdk_files/lex_gen_ai_demo_cdk_files_stack.py where memory_size=10240. change to 3000 then it will run.

@carbonless
Copy link

Once you get the Lambda Functions up and running both 'read-source-and-build-index-fn' and 'lex-codehook-fn' hit a local storage limit.

you need to modify their local /tmp from 512 to 1024:

for example - aws lambda update-function-configuration --function-name lex-codehook-fn --ephemeral-storage '{"Size": 10240}'

Then they run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants