Home > database >  AWS IAM - Access Denied from Lambda to DynamoDB
AWS IAM - Access Denied from Lambda to DynamoDB

Time:05-09

I am following this enter image description here

But, as expected given the error, I am getting this error when trying to simulate the access to DynamoDB with the role:

enter image description here

Any clue? :(

CodePudding user response:

Your policy does not match the actual resource. You reference table/lambda-dynamodb-url-shortener in the policy but the error messages mentions table/url-shortener-table. Therefore you either need to change the policy to allow access to table/url-shortener-table or fix the lambda code to actually talk to a dynamodb table named lambda-dynamodb-url-shortener. (Probably the first one fixes the issue)

  • Related