In this video, learn the solution for the API Gateway and Lambda challenge.
(upbeat techno music) … - [Instructor] So in the challenge I ask you … to create a new API Gateway Lambda … that will trigger when a cake producer completes an order. … And this Lambda should update the order metadata … in the table and also send a message to the stream … that the order was fulfilled. … So let's see how I solve this problem. … The first thing I want to do … is to go to the serverless.yml and create the function. … So we are going in the function's definition … under the other function that we can have there … to create order and we are going to create a new order … that I will call orderFulfillment. … There we need to give a path for the code … that will be in our handler in the method orderFulfillment … and this Lambda will get triggered with an http event. … So we write that and in the path order/fulfill. … And in the method, post. … So that was in the description of the challenge. … So now we can go to the handler.js … and create this new method. … So we can go under the definition of the method …
- Backend as a service (BaaS)
- Function as a service (FaaS)
- Why infrastructure as code is so important
- Creating an order
- Setting up DynamoDB
- Saving into a DynamoDB table
- Using AWS SDK
- Sending a message to the stream
- Deploying and testing an application
- Cleaning up an AWS environment
Skill Level Intermediate
AWS for Developers: AWS AppSync with GraphQLwith Bear Cahill1h 25m Intermediate
Introduction to AWS DeepLenswith Jonathan Fernandes33m 50s Intermediate
What you should know1m 27s
1. Get Started with Serverless
2. Get Started with Kinesis
3. SNS, SQS, and Kinesis
4. Lifecycle of a Message in the Stream
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.