From the course: Learning Amazon Web Services Lambda

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Add API Gateway as a trigger to Lambda

Add API Gateway as a trigger to Lambda

- [Instructor] Let's go back now to the AWS Management Console, to the lambda that we previously created. We created a function without a trigger. So let's add one. To add a trigger, basically just click on the add trigger. Then you can select a source. Here you can see all the different services that can trigger a Lambda function, the list is very long and let's stay on the top and pick API gateway. Then we'll create a new API and then we are leaving the security open. That means that we don't require any authentication in order to access it. Let's add this API gateway. Now that the API gateway is ready, we can click on it and we will see the configuration for it. If we click on the endpoint, we'll see the message that the API gateway sends when we invoke the Lambda. "Hello from Lambda!" Then if we click this my lambda function API, it will take us to the AWS resource for this API gateway in particular. So here…

Contents