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
damp-school-17708
07/13/2021, 7:33 PM
HTH I really need to find the time to blog some of my last 6 months learnings on pulumi there's not enogh online
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.