Skip to content

Instantly share code, notes, and snippets.

@jamesonjlee
Created April 24, 2014 22:40
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jamesonjlee/11271979 to your computer and use it in GitHub Desktop.
Save jamesonjlee/11271979 to your computer and use it in GitHub Desktop.
dynamodb local setup
sudo apt-get install openjdk-7-jre-headless -y
cd /home/ubuntu/
mkdir -p dynamodb
cd dynamodb
wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest
tar -xvzf dynamodb_local_latest
rm dynamodb_local_latest
mv dynamodb_local_*/ dynamodb/
cat >> dynamodb.conf << EOF
description "DynamoDB Local"
#
# http://aws.typepad.com/aws/2013/09/dynamodb-local-for-desktop-development.html
#
start on (local-filesystems and runlevel [2345])
stop on runlevel [016]
chdir /home/ubuntu/dynamodb/dynamodb
setuid ubuntu
setgid ubuntu
exec java -Djava.library.path=. -jar DynamoDBLocal.jar
EOF
sudo cp /home/ubuntu/dynamodb/dynamodb.conf /etc/init/dynamodb.conf
@abhiche
Copy link

abhiche commented Oct 7, 2015

Thanks mate. Saved a lot of time.

@nchudleigh
Copy link

Awesome thank you!

@roggio
Copy link

roggio commented Jun 17, 2016

This is very helpful. Thank you. It does look as if the directory name has changed to DynamoDBLocal_lib.

@vedit
Copy link

vedit commented Aug 2, 2016

@debnath
Copy link

debnath commented Mar 21, 2017

Thanks. I did some minor updates so it works as of March 2017:

https://gist.github.com/debnath/9ac1e1548a4cc7c6041d4ed744e3a5dd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment