Integrating a Lambda function with an upstream component

In the previous sections, we went over the basics of Lambda functions and the programming model, and we created, configured, deployed, and tested a very simple Lambda function, which greeted the caller.

In this section, with the goal of having an end-to-end working example of a Lambda function, let's hook our greeter to an API Gateway that allows the Lambda function to be exposed as an API.

In a production-grade application, none of the following have to be done via the console. The API Gateway provides extensive Swagger extensions, which can be leveraged to eradicate the boilerplate steps.

Some working knowledge of REST APIs is required to properly understand this section. Knowledge of the AWS API Gateway is desirable but not mandatory. This section assumes that the reader at least knows what the AWS API Gateway is, its integration types, its configuration settings, and what benefits it offers. Details about configuring the Gateway are beyond the scope of this section.