
What can be done if you have long package and deployment steps but you want to speed up the time it takes to build and test your Lambdas? Or if you have lambdas from different stacks that invoke each other and you’d like test them locally at the same time? Reroute Traffic with a Proxy
Proxyman setup how to#
How much functional code should go into a single Lambda? How to choose when to separate functions into different stacks? How to organize repositories around stacks?

Sure, there may be better ways to structure and deploy your code to prevent the monolithic deployment issues but there will always be tradeoffs. With sam You cannot deploy two lambdas locally and route traffic between them (as far as I know). Yes, sam does provide a way to invoke lambdas locally, but this does not help when you want to test coordinated changes between Lambdas. This becomes particularly annoying when you push code to AWS only to realize that you misspelled a string and you need to redeploy the entire stack. The impact is that you need to build and upload all of your code to AWS for each deployment that you want to test in the cloud. Since sam deploys all resources in a CFT, you cannot selectively choose which ones to incrementally update.

Proxyman setup install#
