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!