June 2018
Intermediate to advanced
184 pages
3h 28m
English
In the previous section, we learned about programming Lambda function handlers. Now, let's explore testing and debugging.
Here, we are going to look at three different testing and debugging approaches:
Let's go back to our handler.js file from the previous section. There are a couple things that should be changed. The response method should be changed back to something that our API can work with.
Give it a body property with a stringify JSON content, as shown here:
body: JSON.stringify({
And, in the JSON content, get back the event in the remaining time from the context, and then, instead of returning ...
Read now
Unlock full access