amazon-s3

Running aws S3 locally to test saving of images


We implemented aws S3 for uploading images and generating pdfs through this images. However on our local testing server we cannot use the aws S3 locally and I am looking for ways to run aws S3 locally maybe using docker or another software.

Do you have any recommendations?

I use docker for the local DB and Tomcat for the local server


Solution

  • You can NOT run S3 locally.

    What you can do is to mimic the S3 API calls.

    see https://github.com/spulec/moto
    https://medium.com/@l.peppoloni/how-to-mock-s3-services-in-python-tests-dd5851842946