- API Gateway

Defining API gateway so external services can interact with Lambda.

API gateway

So far, we’ve invoked the function only using the built-in test functionality of Lambda.

In order to host the function so that other services can interact with the function, we’ll need to define an API Gateway in the Lambda console.

  1. Under the “Function Overview” tab, click “Add Trigger”.
  2. Select “API Gateway”.
  3. Select “Create a new API”. Use the “REST API”.
  4. Choose “Open” as the security setting.

After setting up the trigger, an API Gateway should be visible in the Designer layout, as shown in the figure below:

Get hands-on with 1200+ tech skills courses.