In this video, learn how to put a record in a Kinesis stream using the AWS SDK.
- [Instructor] So now we have saved the order in the table, … so now let's put that order in the stream. … Let's go to top of the file … after we have grabbed the model for Dynamo, … and let's do similar thing to get the model from Kinesis. … So now we can start using Kinesis in our project. … Also, I want to have an environmental variable … for the Kinesis stream, so we do the same … as we did with the table name. … We will do that with the stream name. … So we can use the environmental variable, … so if we ever change that stream name, … we can just put it in the code as a variable … and we don't need to change the code. … So let's copy this here. … The stream name, name of the variable, … and go to serverless YML … to our function definition, … to environment, and after that, … we can place a new environmental variable. … And then the value of these variable … is the name of the stream. … That is order events. … Good. … Now we can use this constant in our code. … So let's create a new function, …
- 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.