This website collects cookies to deliver better user experience
How to setup and use DynamoDb Locally - Free
How to setup and use DynamoDb Locally - Free
Did you know DynamoDB from AWS has a locally downloadable version which you can install on your local machine and use for development and testing purposes.
As a newbie to AWS, I was unable to find any comprehensive guide on how to setup and use DynamoDB locally. So without further ado, let's start.
Download the DynamoDB Local (Downloadable Version)
There are 3 ways you can download:
Standalone jar file
Using Docker
Using an Apache Maven
I'm using Docker for this tutorial, for instructions on other 2 ways, visit this official AWS site
Please note your application doesn't have to be a containerized application, we're just using DynamoDB database as a container, that's it.
Using Docker
Make sure you have docker up and running. If you've not, follow this official instructions
docker run -p 8000:8000 amazon/dynamodb-local
`
This will download DynamoDB locally from official Docker image and run.
If everything is okay, you'd see output something like this:
`
Initializing DynamoDB Local with the following configuration:
Port: 8000InMemory: trueDbPath: null
SharedDb: falseshouldDelayTransientStatuses: falseCorsParams: *
`
This would run the fully functional DynamoDB instance at http://localhost:8000.