Skip to content

Instantly share code, notes, and snippets.

@namuan
Created October 21, 2018 20:12
Show Gist options
  • Save namuan/f38d3987555e92c3b65d994df814b25d to your computer and use it in GitHub Desktop.
Save namuan/f38d3987555e92c3b65d994df814b25d to your computer and use it in GitHub Desktop.
Running DynamoDB Locally
$ docker run -p 8000:8000 amazon/dynamodb-local

List dynamo tables

$ aws dynamodb list-tables --endpoint-url http://docker-ip:8000

Create table and attribute

$ aws dynamodb create-table --table-name CManager --attribute-definitions AttributeName=KeyId,AttributeType=S --key-schema AttributeName=KeyId,KeyType=HASH --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 --endpoint-url http://docker-ip:8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment