Unit testing Lambda Python code

It is not easy to debug in AWS Management Console; it's much more constructive to debug code locally and later automate the process.

We know from previous chapters that the Lambda event source is an API Gateway GET request. As we are only looking at a subset of the data, this full JSON payload can be simulated with a few lines of Python code too.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset