DynamoDB is an AWS service, but it is convenient to have a local environment during development. By the way, AWS officially distributes it http://docs.aws.amazon.com/ja_jp/amazondynamodb/latest/developerguide/DynamoDBLocal.html However, it depends on the installation environment, so you can easily make it with Docker.
Some Docker images of DynamoDB have been released, but this time it seems to be the easiest https://hub.docker.com/r/tray/dynamodb-local/ I will use this.
Start with the command in Description without thinking for the time being
7777 tray/dynamodb-local -inMemory -port 7777
When I start it, I notice that "Oh, it wasn't running in the background", but that's fine for the time being.
## Communication confirmation
Check communication with Python.
from boto.dynamodb2.layer1 import DynamoDBConnection conn = DynamoDBConnection(host='xxx.xxx.xxx.xxx', port=7777, aws_access_key_id='', aws_secret_access_key='', is_secure=False) conn.list_tables() {u'TableNames': []}
Of course, the table doesn't exist because it's just started. If you can not connect, it will time out, so you can confirm the startup and communication safely.
The rest is boiled or baked.