Skip to content

Instantly share code, notes, and snippets.

@dkobia
Created May 25, 2017 20:27
Show Gist options
  • Save dkobia/ebe6fb2fa74f3d8d6442e60b2540de3a to your computer and use it in GitHub Desktop.
Save dkobia/ebe6fb2fa74f3d8d6442e60b2540de3a to your computer and use it in GitHub Desktop.
Easy DynamoDB Local Environment (Mac OSX / Linux)

Set Up DynamoDB

  • Get DynamoDB
$ wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz
  • Unzip
$ gunzip dynamodb_local_latest.tar.gz
  • Make a local directory
$ mkdir ~/.dynamolocal
  • Untar to new directory
$ tar -jxvf dynamodb_local_latest.tar -C ~/.dynamolocal

Modify .bash_profile or .profile

Add:

function dynamodb(){
  cd ~/.dynamolocal
  java -Djava.library.path=./DynamoDBLocal_lib/ -jar DynamoDBLocal.jar
}

Running DynamoDB

From command line run:

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