Check out a free preview of the full Serverless with AWS Lambda course

The "Lambda API Exercise" Lesson is part of the full, Serverless with AWS Lambda course featured in this preview video. Here's what you'd learn in this lesson:

In this exercise, students configure routes for lambdas using the serverless YAML.

Preview
Close

Transcript from the "Lambda API Exercise" Lesson

[00:00:00]
>> Scott Moss: Cool, all right. So what you're gonna be tasked to do is if you look in the serviceless.yml, there's two functions todos and todo. And in the API folder they already have handlers. What you're gonna do is you're gonna hook up the events inside the functions of the severless.yml so that you're able to access them on whatever routes.

[00:00:20]
Maybe /todo, maybe /todo/id, I did'nt tell you about parameters. So good luck trying to figure that out. [LAUGH] But yeah, I would recommend trying that on this to-do one. See if you can set up a parameter. Even if you don't use any of your lambda functions. See if you can actually set one up.

[00:00:38]
And then yeah, get those to run and then see if you can access them with some HTTP client or in the browser. And see what happens

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Get Unlimited Access Now