follow-up question, I'm getting an error when crea...
# typescript
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?
Copy code
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
looks like you need to use webpack (or similar alternatives) to shrink your lambda / dependencies
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?
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