We use DynamoDB for some of our stack and use Amazon's dynamodb_local instance on our dev machines. I recently upgraded to a new Macbook and have my dev environment setup correctly, however I'm unsure of how to move over the dynamodb_local database file which looks like anything_localhost.db
, or how to use it with my new dynamodb_local instance on the new computer.
The dynamodb_local instances are both the same version (2014-10-07) and run correctly. If I specify the directory with my anything_localhost.db
file at runtime with the --dbPath
option, it doesn't seem to read/detect my db file.
Any help would be appreciated, and I'll edit this question with more info as needed. Thanks!
Are you using the exact same AWS credentials (AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY) to access the DynamoDB local database? I have noticed that each credential pair ends up creating/accessing its own DB file. Alternatively, according to the docs, the -sharedDb will ensure that all credentials share the same DB.