Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saidsef/aws-dynamodb-local

AWS DynamoDB Local
https://github.com/saidsef/aws-dynamodb-local

aws aws-dynamodb docker-image dynamodb

Last synced: about 8 hours ago
JSON representation

AWS DynamoDB Local

Awesome Lists containing this project

README

        

# Docker DynamoDB Local [![CI](https://github.com/saidsef/aws-dynamodb-local/actions/workflows/docker.yml/badge.svg)](#kubernetes-deployment) [![Tagging](https://github.com/saidsef/aws-dynamodb-local/actions/workflows/tagging.yml/badge.svg)](#kubernetes-deployment) [![Release](https://github.com/saidsef/aws-dynamodb-local/actions/workflows/release.yml/badge.svg)](#kubernetes-deployment)

Build for [local AWS DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.UsageNotes.html)

## AWS DynameDB

Amazon DynamoDB is a fast and flexible NoSQL database service for all applications that need consistent, single-digit millisecond latency at any scale. It is a fully managed cloud database and supports both document and key-value store models. Its flexible data model, reliable performance, and automatic scaling of throughput capacity, makes it a great fit for mobile, web, gaming, ad tech, IoT, and many other applications.

## Components

- OpenJDK v8+
- [AWS DynamoDB Local](https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz)

## Kubernetes Deployment

```bash
kubectl apply -k deployment/

```

Or, to deploy via argocd:

```bash
kubectl apply -f argocd/application.yml
```

```shell
aws --endpoint-url=http://dynamodb.[namespace].svc dynamodb list-tables --region local
```

## Docker Deployment

```shell
docker run -d -p 8000:8000 docker.io/saidsef/aws-dynamodb-local:latest
```

## HowTo and Documentation

```shell
aws dynamodb create-table \
--table-name TableName \
--attribute-definitions \
AttributeName=id,AttributeType=S --key-schema \
AttributeName=id,KeyType=HASH \
--provisioned-throughput ReadCapacityUnits=2,WriteCapacityUnits=2 \
--endpoint-url http://dynamodb.[namespace].svc
```

In the SDK set the client to:

```shell
region: 'localhost',
endpoint: 'http://localhost:8000'
```