O'Reilly logo

AWS Lambda in Action by Danilo Poccia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required