/amazondb-local-spring-data-example

Code used for the tutorial on relaximus.com

Primary LanguageGroovy

Amazon DynamoDb local tutorial repository.

DynamoDB example

In this example Spring Data DynamoDB and DynamoDB Local are being used for showing case how all that could be configured and run.

There are two options to run code:

  1. Locally on your computer
  2. Using the aws account (key/secret needed)

Local

Run

gradle bootRun

In the console you will find the message:

There is 1 users in the table

In real dynamodb table

This example shows the easines of operating with tables by means of spring data dynamodb.

gradle bootRun -Dspring.profiles.active=prod
There is X users in the table

x - will be incremented every time you start the application.