Serverless with AWS Lambda

Lambda API Exercise

Scott Moss

Scott Moss

Superfilter AI
Serverless with AWS Lambda

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.


Transcript from the "Lambda API Exercise" Lesson

>> 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.

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.

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