Here I’ll explain how we can use both locally deployed DynamoDB instance and DynamoDB tables created on the AWS console. Additionally, I’ll add steps to follow in creating DynamoDB tables in an AWS console, and how to access those from our spring boot REST API using Spring Data.
Technologies going to use,
- Java 1.8
- Spring Boot 2.3.4 RELEASE
- Spring Data
- AWS Java SDK For Amazon DynamoDB
- Spring Data DynamoDB
- Spring Data Release Train BOM
- Lombok
- Gradle
- IntelliJ Idea for IDE
Main topics I’m going to explain here,
- Running DynamoDB Locally
- Adding Required Dependencies
- Defining API Endpoints
- Basic Architecture Inside The Project
- Developing the API
- Configure DynamoDB Connection For Spring Boot
- Defining Model Classes
- Defining Repository Layer
- Adding Service Layer
- Controller Layer to Expose REST API Endpoints
- Testing API
- Setup DynamoDB Tables in AWS Console
📄 Original Tutorial Spring Boot REST API CRUD With DynamoDB Tutorial
Related Articles