How it works...

In this recipe, we created a new Lambda function called 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 can 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 have shown you 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 the AWS console in the Lambda section. Like the other recipes, we tried to clean up after ourselves at the end.

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

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