Skip to content

Instantly share code, notes, and snippets.

@mungi
Created January 12, 2015 15:57
Show Gist options
  • Save mungi/a4e16e183d705e3e0313 to your computer and use it in GitHub Desktop.
Save mungi/a4e16e183d705e3e0313 to your computer and use it in GitHub Desktop.
Connecting to DynamoDB Local from boto
# http://sebastiandahlgren.se/2014/06/27/connecting-to-dynamodb-local-from-boto/
from boto.dynamodb2.layer1 import DynamoDBConnection
connection = DynamoDBConnection(
aws_access_key_id='foo', # Dummy access key
aws_secret_access_key='bar', # Dummy secret key
host='localhost', # Host where DynamoDB Local resides
port=8000, # DynamoDB Local port (8000 is the default)
is_secure=False) # Disable secure connections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment