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

Setting up all the permissions - Amazon Web Services (AWS) Tutorial

From the course: AWS for Developers: Data-Driven Serverless Applications with Kinesis (2019)

Start my 1-month free trial

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…

Contents