https://pulumi.com logo
Title
g

green-daybreak-98726

07/13/2021, 1:29 AM
follow-up question, I'm getting an error when creating lambdas that we've created before, saying that the request Entity is too large? Does this automatically get pushed to S3 if it's too big or do we have to orchestrate it?
aws:lambda:Function (eu-west-2-dev-dbtester-func):
    error: 1 error occurred:
        * error creating Lambda Function: RequestEntityTooLargeException:
        status code: 413, request id: 84cfdf77-4668-4921-a3fd-8635f200245a
d

damp-school-17708

07/13/2021, 7:56 AM
looks like you need to use webpack (or similar alternatives) to shrink your lambda / dependencies
g

green-daybreak-98726

07/13/2021, 4:42 PM
Are there examples of this anywhere? I'm trying to wrap my head around the workflow here to find out what's even causing this. Is there a hook I can print what's actually being sent to AWS in the "magic" callback functions?
d

damp-school-17708

07/13/2021, 7:32 PM
I don't know if there's a way but what we do, our workflow is something like yarn typecheck ; yarn test; yarn build (which does the webpack) Then in the lambda definition in pulumi we pinpoint the folder that webpack outputs to
HTH I really need to find the time to blog some of my last 6 months learnings on pulumi there's not enogh online
💯 1
👍 1