How it works...
In this recipe, we created a new lambda function, secret, that will respond with whether or not you guessed a secret phrase. The function parses an incoming JSON request, performs some logging using Stderr, and returns a response.
After using the function a few times, we see that our logs are visible using the apex logs command. This command can be run on a single lambda function or across all of our managed functions. This is especially useful if you are chaining Apex commands together and want to watch logs across many services.
In addition, we show how to use the apex metrics command to collect general metrics about your application, including cost and invocations. You can also see a lot of this information directly in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access