Skip to main content

Command Palette

Search for a command to run...

Setup local Dynamodb with NoSQL workbench

Troubleshooting local installation of DynamoDB and NoSQL Workbench

Updated
โ€ข1 min read
Setup local Dynamodb with NoSQL workbench

AWS documentation for Dynamodb is apt for someone who is setting up the local instance. I was able to able to CLI based commands to insert, delete and list the DB after the installation.

But, I wasn't able to load tables in NoSQL workbench.

I tried multiple ways to make it work. After hours of trial and errors, following are the notes which worked for me as of Sept 2022

  1. Download and Install Amazon Dynamodb docker instance
  2. I stored my docker-compose.yml under /local_dynamodb folder, to keep it neat.
  3. Fire up docker instance (Make sure docker daemon is running) and all done at Dynamodb end.
local_dynamodb % docker-compose up
Creating dynamodb-local ... done
Attaching to dynamodb-local
dynamodb-local    | Initializing DynamoDB Local with the following configuration:
dynamodb-local    | Port:    8000
dynamodb-local    | InMemory:    false
dynamodb-local    | DbPath:    null
dynamodb-local    | SharedDb:    true
dynamodb-local    | shouldDelayTransientStatuses:    false
dynamodb-local    | CorsParams:    *
dynamodb-local    |

Let's switch to NoSQL workbench configuration Screen Shot 2022-09-16 at 3.25.45 PM.png

Press Connect and you are connected! ๐Ÿ˜Ž

If you liked this article, please like it and follow me on #Hashnode to stay updated.

H
Hui Yang2y ago

when you access table , the connection will use "localhost" as region......

A

Good idea to recommend Docker! Originally I downloaded DynamoDB into somewhere obscure in my hard drive, but using Docker would solve that issue.

1
P

yay! I had a ton of fun without Docker ๐Ÿ˜…

K

This is really helpful thanks for writing this.

1
P

Thank you Kamal.

R

"It's very useful article for the DevOps who is starting the carrier". Great start keep writing some more useful articles regarding DevOps.

1
P

Thank you so much. Ravindra Kumar