JO
joocoo/AWS_Javascript_SDK_DynamoDB_Demo
Simple example of the use of the AWS Javascript SDK v3 with DynamoDB
Intro
This is just a simple sample built using AWS Javascript SDKv3 to interact with DynamoDB.
It leverages the following classes:
- From '@aws-sdk/client-dynamodb'
- CreateTableCommand : Creates table
- DeleteTableCommand : Deletes table
- DynamoDBClient : Connection manger to access DynamoDB
- From '@aws-sdk/lib-dynamodb'
Simplifies working with items in Amazon DynamoDB by abstracting away the notion of attribute values.- BatchGetCommand : Helper class to get multiple records into DynamoDB
- BatchWriteCommand : Helper class to write multiple records into Dynamo DB
Prequisites
How to run
A docker compose file is provided to you to run an instance of LocalStack.
docker-compose up -dThis example provides two methods to view or run the code.
First you must install any dependencies needed to run the code.
deno installThen you can run the main.ts file directly by using the following:
deno run startJupyter Notebook
To get the deno jupyter runtime installed and running.
deno jupyterIf you have VS Code you can install the Jupyter Notebook Extension and run the selected deno runtime.
Here is a link to guide you https://docs.deno.com/runtime/reference/cli/jupyter/.
View in AWS NoSQL Workbench
- Download AWS NoSQL Workbench
- At the main screen click on
Operation builder->+ Add Connection
- At the switch to the
DynamoDB localtab and fill in theConnection nameto what you prefer in this case we used Localstack and change thePortto4566if you plan on using the LocalStack docker container provided.
- You should see this

- Open the connection and assuming you ran code to create the DB adding items from the jupyter notebook; you can see the following:

On this page
Languages
Jupyter Notebook62.8%TypeScript37.2%
Contributors
Apache License 2.0
Created March 27, 2025
Updated March 27, 2025