Menu
User

DropVPS Team

Writer: Cooper Reagan

How to install dynamodb on ubuntu 25.10

How to install dynamodb on ubuntu 25.10

Publication Date

10/10/2025

Category

Articles

Reading Time

3 Min

Table of Contents

Amazon DynamoDB is a fully managed NoSQL database that provides fast and predictable performance with seamless scalability. It’s ideal for applications requiring low-latency access to large volumes of data. While AWS offers DynamoDB as a cloud service, you can also run DynamoDB locally on Ubuntu 25.10 for development and testing.

Update the System

Before anything else, make sure your system is up to date:

sudo apt update && sudo apt upgrade -y

Install Java

DynamoDB Local requires Java to run. Install OpenJDK with:

sudo apt install openjdk-17-jdk -y

Verify the installation:

java -version

You should see output confirming Java 17 or higher is installed.

Create a Directory for DynamoDB

Create a folder to store DynamoDB Local files and switch into it:

mkdir ~/dynamodb
cd ~/dynamodb

Download DynamoDB Local

Use wget to download the latest version of DynamoDB Local directly from Amazon:

wget https://s3.us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz

Extract the archive:

tar -xvzf dynamodb_local_latest.tar.gz

Run DynamoDB Local

Start the DynamoDB Local server using Java:

java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb

This runs DynamoDB on port 8000 by default. You can now connect to it using the AWS CLI or SDKs.

Verify DynamoDB is Running

Open another terminal and test the connection with the AWS CLI:

aws dynamodb list-tables --endpoint-url http://localhost:8000

If DynamoDB is running correctly, you’ll see an empty table list ([]) since no tables have been created yet.

Install AWS CLI (if not installed)

If you don’t already have AWS CLI, install it with:

sudo apt install awscli -y

Then configure it:

aws configure

You can enter placeholder credentials (they’re not required for local mode).

Create a Test Table

Now let’s create a test table to ensure everything works:

aws dynamodb create-table \
    --table-name Users \
    --attribute-definitions AttributeName=UserID,AttributeType=S \
    --key-schema AttributeName=UserID,KeyType=HASH \
    --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \
    --endpoint-url http://localhost:8000

Check that the table was created:

aws dynamodb list-tables --endpoint-url http://localhost:8000

Run DynamoDB as a Background Service

If you want DynamoDB to run automatically at boot or as a background process, create a systemd service file:

sudo nano /etc/systemd/system/dynamodb.service

Add the following configuration:

[Unit]
Description=DynamoDB Local
After=network.target

[Service]
ExecStart=/usr/bin/java -Djava.library.path=/home/ubuntu/dynamodb/DynamoDBLocal_lib -jar /home/ubuntu/dynamodb/DynamoDBLocal.jar -sharedDb
Restart=always
User=ubuntu

[Install]
WantedBy=multi-user.target

Save the file, then enable and start the service:

sudo systemctl enable dynamodb
sudo systemctl start dynamodb

You’ve successfully installed DynamoDB Local on Ubuntu 25.10. This setup is perfect for developers who need a lightweight, offline environment for testing DynamoDB queries, schema design, and integrations before deploying to AWS.

For high-performance Ubuntu VPS servers optimized for databases, automation, and AWS integrations, check out DropVPS — your reliable partner for cloud-ready hosting.

Linux VPS
U
Loading...

Related Posts