DEV Community

Discussion on: Deploy a GraphQL API with Prisma, AWS AppSync, Aurora Serverless & CDK

Collapse
 
ysoffice profile image
YS office LLC

Thank you for the wonderful article.

I deployed according to the procedure, but the Lambda function reaches the 250 MB limit and rolls back.

Do you know what to do?

9:17:12 | CREATE_FAILED        | AWS::Lambda::Function                       | MyFunction
Resource handler returned message: "Unzipped size must be smaller than 262144000 bytes (Service: Lambda, Status Code: 400, Request ID: 63697f97-7b49-4873-a14f-07dc9a97769d, Extended Request ID: null)" (RequestTok
en: 9b436616-23f2-eebe-0509-9857eca7b8ec, HandlerErrorCode: InvalidRequest)
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ryands17 profile image
Ryan Dsouza

In that case, I would suggest using the aws-lambda-nodejs construct as I have shown here so that it only bundles the necessary packages and you don't go over the limit.

Collapse
 
ysoffice profile image
YS office LLC

Thank you! It was very helpful!