6 ms·
There is “sam local”. But honestly, all a Lambda is a script with a function that takes two parameters - an event and a context. You can scaffold testing and
by scarface74 4y ago
There is “sam local”.
But honestly, all a Lambda is a script with a function that takes two parameters - an event and a context. You can scaffold testing and development just like you would a controller action in an MVC framework - use a test harness that calls the method with the correct JSON payload and usually a null event context.