From the course: AWS for Developers: Data-Driven Serverless Applications with Kinesis (2019)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Setting up all the permissions - Amazon Web Services (AWS) Tutorial
From the course: AWS for Developers: Data-Driven Serverless Applications with Kinesis (2019)
Setting up all the permissions
- [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, so…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Kinesis introduction4m 44s
-
(Locked)
Designing an event-driven application4m 48s
-
(Locked)
Create stream with CloudFormation2m
-
(Locked)
Create an order5m 9s
-
(Locked)
Setting up DynamoDB and saving into the table6m 19s
-
(Locked)
Send a message to the stream using AWS SDK2m 54s
-
(Locked)
Setting up all the permissions4m 44s
-
(Locked)
Deploying and testing5m 1s
-
(Locked)
Challenge: API Gateway and Lambda1m 19s
-
(Locked)
Solution: API Gateway and Lambda10m 31s
-
-
-
-