AWS Lambda - Grant Access
Go to AWS IAM Console Find your Lambda’s role Click on the role name Click “Add permissions” → “Create inline policy” In the JSON editor, paste this policy: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "dynamodb:Scan", "dynamodb:GetItem", "dynamodb:Query" ], "Resource": "arn:aws:dynamodb:ap-southeast-2:6850********:table/user_list" } ] } Click “Review policy” Name it something like “DynamoDBScanPolicy” Click “Create policy” After adding this policy, wait a few seconds and try your Lambda function again. The error should be resolved. ...