User is not authorized to perform: dynamodb:PutItem on resource

Tirath Shah picture Tirath Shah · Jan 14, 2016 · Viewed 40.3k times · Source

I am trying to access DynamoDB from my Node app deployed on AWS ElasticBeanStalk. I am getting an error

User is not authorized to perform: dynamodb:PutItem on resource

It works perfectly fine locally, but when I deploy to the AWS it stops performing.

Answer

Abhimanu Kumar picture Abhimanu Kumar · Jan 11, 2017

The dynamoDB access denied is generally a Policy issue. Check the IAM/Role policies that you are using. A quick check is to add

AmazonDynamoDBFullAccess 

policy in your role by going to "Permissions" tab in AWS console. If it works after that then it means you need to create a right access policy and attach it to your role.