I have set up a Dynamodb in my local.
I can access it using cmd
with commands like:
aws dynamodb list-tables --endpoint-url http://localhost:8000
And I get the list of the tables I have in my local
But when I tried to access it through the DynamoDB JavaScript Shell,
I get this result:
How I can access my Dynamodb local through DynamoDB JavaScript Shell?
Update: Below is the code that returns the error in the image above.
var params = {
TableName: 'my-table',
Limit: 10
};
dynamodb.scan(params, function(err, data) {
if (err) ppJson(err); // an error occurred
else ppJson(data); // successful response
});