Some samples to test DynamoDB locally through Docker
# Download & Run LocalStack
$ docker pull localstack/localstack:latest
$ docker run -it -p 4567-4578:4567-4578 -p 8080:8080 localstack/localstack
# Add some fake credentials locally
$ vi ~/.aws/credentials
# Data to include >>>>>>>>>>>>>>>>>>>>>>>>>>>>
[fake]
region = eu-west-1
aws_access_key_id = **NOT_REAL**
aws_secret_access_key = **FAKE_UNUSED_CREDS**
# Data to include <<<<<<<<<<<<<<<<<<<<<<<<<<<<
npm i aws-sdk
node nodejs-dynamodb-create-table-local.js
node nodejs-dynamodb-populate-table-local.js
node nodejs-dynamodb-read-table-local.js
And you can also view the new dynamoDB resource created at local dashboard