Build for local AWS DynamoDB
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.
- OpenJDK v8+
- AWS DynamoDB Local
kubectl apply -k deployment/
Or, to deploy via argocd:
kubectl apply -f argocd/application.yml
aws --endpoint-url=http://dynamodb.[namespace].svc dynamodb list-tables --region local
docker run -d -p 8000:8000 docker.io/saidsef/aws-dynamodb-local:latest
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://localhost:8000
In the SDK set the client to:
region: 'localhost',
endpoint: 'http://localhost:8000'