In this video, learn how to set up all the permissions needed for your AWS Lambdas to put records in the stream and save data in the table.
- [Instructor] Now we have saved the order in the table … and also placed the order in the stream. … The thing is that in AWS, … nothing has permission by default, … so our serverless application doesn't have permission … to save anything in any table … or to place anything in any stream. … We need to give those permissions to our application … in order for this to happen. … To do that, we're going to our serverless.yml, … and then under provider, … we are going to give the permissions. … Try to be in-line with runtime to write the next line. … We are going to write iamRoleStatements. … And there after that, we are going to start defining … all the permissions we want to give our application. … The first permission we want to give … is to be able to put something in the dynamodb table. … So we write Effect: Allow, … because that's what we want to do, … is to give the permission, and then the action … that we want this permission to have. … We will do dynamodb: PutItem. … Now that we are here, I also will do the GetItem, …
- 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.