Skip to content

Instantly share code, notes, and snippets.

@bradbyte
Last active March 8, 2017 14:11
Show Gist options
  • Save bradbyte/9766ace3b92af4f80b9960b97522ac7d to your computer and use it in GitHub Desktop.
Save bradbyte/9766ace3b92af4f80b9960b97522ac7d to your computer and use it in GitHub Desktop.
AWS DynamoDB Local Shell Alias Script

Having installed the AWS DynamoDB Local client, I extracted the contents into my home directory (~/dynamodb_local_latest). Next, I wanted the ability to create an alias so I could start the server from the terminal regardless where my current directory is.

I added this alias to the end of my .zshrc file.

.zshrc (or .bashrc)

alias dynamodb="java -Djava.library.path=~/dynamodb_local_latest/DynamoDBLocal_lib -jar ~/dynamodb_local_latest/DynamoDBLocal.jar -sharedDb"

Now, you can run dynamodb and the server will start up!

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