Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you run a local copy of AWS DynamoDB somehow?

If you want to write code to use AWS DynamoDB, is there any way to have it run on your local development environment? Or do you have to use the actual product?

Do you have to provision a development environment on AWS? Isn't that annoying because you'd have to work with vim and not have access to your favorite IDE? Or you have to push code to it every time you want to see if what you wrote is working?

like image 650
Yasser1984 Avatar asked Jun 27 '13 23:06

Yasser1984


People also ask

Can you use DynamoDB locally?

DynamoDB Local is available as a download (requires JRE), as an Apache Maven dependency, or as a Docker image. If you prefer to use the Amazon DynamoDB web service instead, see Setting up DynamoDB (web service).

How do I access DynamoDB locally?

To access DynamoDB running locally, use the --endpoint-url parameter. The following is an example of using the AWS CLI to list the tables in DynamoDB on your computer. The AWS CLI can't use the downloadable version of DynamoDB as a default endpoint. Therefore, you must specify --endpoint-url with each AWS CLI command.


2 Answers

Yep - you can now.

http://aws.typepad.com/aws/2013/09/dynamodb-local-for-desktop-development.html http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.html

Caveats include:

  • DynamoDB Local ignores your provisioned throughput settings
  • DynamoDB Local does not have a durability or availability SLA and is not recommended for production use
like image 55
snarkyboojum Avatar answered Sep 19 '22 12:09

snarkyboojum


Yes, you can run it, and I'd recommend to use jcabi-dynamodb-maven-plugin to automate this process (if you're using Apache Maven).

Look at this post: http://www.yegor256.com/2014/05/01/dynamodb-local-maven-plugin.html

like image 29
yegor256 Avatar answered Sep 21 '22 12:09

yegor256