Creating Private API in Amazon API Gateway

   Go back to the Task List

  « 3: Create VPC Endpoint    5: Create API Gateway »

4: Create Lambda Function

You create the Lambda Function which works as the backend for the API in the API Gateway.

  1. In the Lambda Console, click on the Functions menu in the left and then click on the Create function button.

    Lambda

  2. On the next screen, select Author from scratch as the option. Type in dojofunction as the name. Select Python 3.8 as the runtime. Select Create a new role with basic Lambda permissions as the option for the permissions. Finally, click on the Create function button.

    Lambda

  3. The function is created in no time. You leave the function code to the default which is just responding with Hello from Lambda! upon execution. You will use this default code as the business logic behind the API.

    Lambda

  4. The Lambda function is ready. Let’s now configure Private REST API in API Gateway.