But, as expected given the error, I am getting this error when trying to simulate the access to DynamoDB with the role:
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)