Now that we know the Lambda function works with some API Gateway test data, and returns a header and body with a statusCode of 200, we just need to add the API Gateway that will invoke the Lambda function, as shown in the following diagram:
Perform the following steps:
- Sign in to the AWS Management Console and open the API Gateway console at https://console.aws.amazon.com/apigateway/.
- Choose Get Started or, in the Amazon API Gateway navigation pane, choose APIs and choose Create API.
- On the Create page, perform the following steps:
- In Choose Protocol, select REST
- In Create new API, select New API
- Under Settings, type metrics for API name
- Choose Regional for Endpoint Type
- Choose Create API
- Choose Create Resource from the Actions drop-down menu.
- In the New Child Resource window, perform the following steps...