Hi We are developing a java / spring boot application. we would like to use to mock the AWS services which includes RDS , MSK etc .. in our local system without actually using AWS production accounts and using it in our systems. How to do it?
Question posted in Amazon Web Sevices
The official Amazon Web Services documentation can be found here.
The official Amazon Web Services documentation can be found here.
2
Answers
You could have a look at a library called Moto.
This was initially a python project to be used with the Python AWS library Boto3. However, they have added a standalone server mode, which should be useable from any AWS SDK.
The easiest way is probably to use the Moto docker image. Maybe wrap it with Testcontainers and automatically create and tear down the Mock AWS for your tests.
Try localstack
It can run with docker and exposes api services using moto
https://github.com/localstack/localstack
https://docs.localstack.cloud/getting-started/installation/