Instantly share code, notes, and snippets.

Embed
What would you like to do?
dynamodb local setup
#!/bin/bash
DYNAMODB_USER=vagrant
sudo apt-get install openjdk-7-jre-headless -y
cd /home/${DYNAMODB_USER}/
mkdir -p dynamodb
cd dynamodb
wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz
tar -xvzf dynamodb_local_latest.tar.gz
rm dynamodb_local_latest.tar.gz
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/${DYNAMODB_USER}/dynamodb
setuid ${DYNAMODB_USER}
setgid ${DYNAMODB_USER}
exec java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb -dbPath /home/${DYNAMODB_USER}/dynamodb
EOF
sudo cp /home/${DYNAMODB_USER}/dynamodb/dynamodb.conf /etc/init/dynamodb.conf
@get-data-

This comment has been minimized.

get-data- commented Dec 31, 2016

Thank you

@soaxelbrooke

This comment has been minimized.

soaxelbrooke commented May 30, 2017

Those URLs weren't working for me, updated (also changed dynamo user):
https://gist.github.com/soaxelbrooke/77975407e7f3855a4ce42b27f8c4ddda

@vedit

This comment has been minimized.

Owner

vedit commented Jul 24, 2017

Updated the URLs

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