Chapter 7. Calling functions from a client

This chapter covers

  • Using a Lambda function from within a web page via JavaScript
  • Invoking a Lambda function from a native mobile app
  • Serving a dynamic website with AWS Lambda and Amazon API Gateway

In the previous chapter, you learned how to use standalone functions for common tasks, subscribing the functions to events or scheduling a recurring execution. You also learned how to use modules and libraries with Lambda functions. In this chapter, you’ll build on that knowledge to call Lambda functions from clients outside of AWS.

7.1. Calling functions from JavaScript

When we created our first function in chapter 2, we tested the function from the web console and invoked the function using the AWS CLI. ...

Get AWS Lambda in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.