Nisha Patel
Problem
Building lambda dependent stacks take a very long time due to each lambda bundling every time the stack is built. A project using 50+ lambdas can be slowed down significantly by waiting for every lambda to bundle every single time.
Solution
There are active GitHub issues dealing with this see >here and >here.
The workaround I found was to bundle them in parallel before running cdk and add the bundler file to the cdk config to run before any cdk command.
We were able to shorten our build times from 50+ seconds to >1 sec for all our lambdas. here is the build script:
This is how we modified our cdk.json
And here is how we grabbed the pre-bundled Lambda:
Answered by: >Mhyland
Credit: >StackOverflow
Blog Links:
>How do I customize controller actions in Laravel Jetstream?
>Run Laravel Project to Active Local Server
>How to show encrypted user id in URL in Laravel?
>How to fix Laravel LiveWire listener?