Member-only story
AWS Lambda
Cannot authorize user to interact with DynamoDB from AWS Lambda function
Recently I met the issue that lambda function cannot perform “scan” action to dynamoDB with unauthorized user error for iam user.
Turn out we need to add role for lambda function in order to gain permission to access dynamodb. Check this guideline from aws for more details.
Here is the needed role I set to be able to scan dynamodb (might be more permissions than needed). :D
Here is how to apply role to the lambda function.
After applying this, it works.
Hope this helps..
~~PEACE~~