Home/Server & Website Managed Operations/Local Installation and Environment Configuration for AWS DynamoDB
Server & Website Managed Operations

Local Installation and Environment Configuration for AWS DynamoDB

Local Installation and Environment Configuration for AWS DynamoDB

DynamoDB is a NoSQL database service provided by Amazon Web Services (AWS)…

 


This article covers installation and configuration in a Linux environment.

  1. Install the Java SDK
    $ sudo add-apt-repository ppa:webupd8team/java
    $ sudo apt-get update
    $ sudo apt-get install oracle-java8-installer
    $ sudo apt-get install oracle-java8-set-default
  2. Install dynamodb-local
    • Download dynamodb-local: Click here to download
    • Extract the file
    • Navigate to the extracted directory and execute the following command:
      java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
  3. Install awscli by executing the following command:
    pip install awscli
  4. Configure environment variables by executing the following command:
    aws configure
    • You will be prompted to enter your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. These values can be found on the AWS website after you have successfully registered for an AWS account.
    • Set AWS_DEFAULT_REGION according to your needs, which corresponds to the AWS region where your database will reside. If you are just testing and do not wish to check available regions, you can set it to us-east-1.
  5. Start DynamoDB. Navigate to the DynamoDB directory (where you extracted DynamoDB) and execute the following command:
    java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb

References:
[1] http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/
[2] DynamoDBLocal Downloading And Running
[3] http://aws.amazon.com/cli/
[4] http://boto3.readthedocs.org/en/latest/guide/configuration.html

FREE CHECKUP

Free server checkup

We will send a problem checklist and remediation advice within one business day — no obligation to engage.

135 410 16684
Weekdays Mon – Fri 10:00 – 22:00 (UTC+8) · 7×24 emergency response
Call now
CONTACT

Contact Us

How can we help?

* Required