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.
- 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 - 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
- Install awscli by executing the following command:
pip install awscli - 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.
- 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