Connecting to DynamoDB Local from boto

June 27, 2014

Reading time ~1 minute

Here’s a simple snippet for connecting to a DynamoDB Local instance from boto:

Remember that unless you use the --inMemory flag when starting DynamoDB Local, it will store your database on disk. The file name will be called accesskey_region.db and it will reside in the directory where you launch DynamoDB Local (you can define another directory using --dbPath). Therefore it makes sense to set a good name in the aws_access_key_id parameter, even though the credentials aren’t checked in DynamoDB Local.