This shows an example on how to use moto in server mode and use it for testing purposes from Rust applications.
You can read the full article here.
To start the moto server, run:
docker run --rm -p 5000:5000 -d --name moto motoserver/moto:latest
Then, you can test your application normally by running:
cargo test
Finally, stop the Docker container by running:
docker stop moto