# How to install dynamodb-local

**URL:** <https://discuss.circleci.com/t/how-to-install-dynamodb-local/2018>\
**Category:** Databases\
**Created:** [February 10, 2016, 1:23am UTC](https://discuss.circleci.com/t/how-to-install-dynamodb-local/2018 "2016-02-10T01:23:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joelpresence](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@joelpresence](https://discuss.circleci.com/u/joelpresence)\
**Post date:** [February 10, 2016, 1:23am UTC](https://discuss.circleci.com/t/how-to-install-dynamodb-local/2018/1 "2016-02-10T01:23:46Z")

</div>

I’d like to install dynamodb-local, a localhost version of AWS DynamoDB, on the circleci host, so that my tests will be faster, more reliable and not risk connecting to my actual AWS account. I have this working locally on my personal Macbook Pro, but I’m not sure how to install dynamodb-local on circleci.

Here are some links:

[http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html)

> **[DynamoDB Local for Desktop Development | Amazon Web Services](https://aws.amazon.com/blogs/aws/dynamodb-local-for-desktop-development/)**
>
> Would you like to be able to write and test code that uses the Amazon DynamoDB API even if you have no network connection and without incurring any usage charges (AWS Free Usage Tier notwithstanding)? If so, you are going to love our new DynamoDB...

Thoughts? A tutorial written by you would be awesome … 😉

Thanks!

---

<div class="post-metadata">

**Author:** ![tatyree](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/tatyree/32/13300_2.png) [@tatyree](https://discuss.circleci.com/u/tatyree)\
**Post date:** [June 18, 2016, 8:15am UTC](https://discuss.circleci.com/t/how-to-install-dynamodb-local/2018/2 "2016-06-18T08:15:31Z")

</div>

Here’s how I do it:

```auto
machine:
  environment:
    _JAVA_OPTIONS: "-Xms512m -Xmx1024m"

  java:
    version: openjdk7
  post:
    - curl -k -L -o dynamodb-local.tgz http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz
    - tar -xzf dynamodb-local.tgz
    - java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb:
        background: true

```

Hope that helps.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:41am UTC](https://discuss.circleci.com/t/how-to-install-dynamodb-local/2018/3 "2018-06-18T11:41:42Z")

</div>


