Skip to content
Advertisement

How to connect to DynamoDB on AWS using a Spring Boot application running on local system?

I’m working on Spring Boot microservice REST based application and backedn database is currently local Dynamodb database. I can make REST calls using Postman to my application running locally and can perform CRUD operation with the local dynamodb database. Now I want to make changes in the configuration so that whenever I make similar CRUD operations on my application running locally the data should be saved/updated on actual DynamoDB running on AWS & not local. Basically, I want to point application to remote DynamoDB endpoint. Is it possible? Is there any sample reference guide available to make such configuration changes?

Currently, this is my configuration class and properties file:-

JavaScript

Please assist. Thank you

Advertisement

Answer

Just change the endpoint (leave empty for remote) and credentials/keys:

JavaScript

You have some examples here: https://tech.smartling.com/getting-started-with-amazon-dynamodb-and-java-universal-language-850fa1c8a902

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement