Hey Dev Community! 👋
To install dynamoDB locally follow the below steps.
🛠️ Step 1: Download DynamoDB
Get DynamoDB Local for free from the official sources:
🖥️ Mac/Linux → Download tar.gz
🖥️ Windows → Download .zip
🔧 Step 2: Install AWS CLI
To easily view tables and data in a GUI, install the AWS CLI.
here
📂 Step 3: Extract and Run DynamoDB
1️⃣ Extract the downloaded .zip file.
2️⃣ Navigate to the directory containing DynamoDBLocal.jar.
3️⃣ Run the following command:
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb -dbPath C:/dynamodb/data
💡 Important: Ensure that the dynamodb/data directory exists in the C:/ drive. If not, create it using:
mkdir C:/dynamodb/data
🔑 Step 4: Configure AWS Credentials for Local Use
Set up AWS credentials for local development using:
aws configure
📋 Step 5: Verify Tables
To check the available tables, run:
aws dynamodb list-tables --endpoint-url http://localhost:8000
🎉 Your DynamoDB is running locally and now add a backend service and hit queries. or you can use terminal too to test it.
Your DynamoDB is running port by default on 8000, you can change with -port [port you want to keep]. and then check the data.
In the next part, we’ll explore how to integrate DynamoDB with a Spring Boot application! 🚀