Minio Cloud storage API for Web/App[Part-4 Connecting with AWS]
In this part we will connect our local minio server with AWS and make real time media sharing
If you followed our previous tutorials(3-Parts), we have used dockerised minio for our local bucket storage but in this part-4 we use AWS to store all the images uploaded by our users.
Hope you have got your AWS secret key and access key. Suppose if you haven’t, get yours by following this tutorial (Not a sponsored post)
The best about minio is, it’s very simple for beginner so let’s look into their docs — https://docs.minio.io/docs/minio-gateway-for-s3.html

That’s it, We cracked it. The Command is (Run this command on terminal in EC2 or in your local )
docker run -p 9000:9000 --name minio-s3 \
-e "MINIO_ACCESS_KEY=YOUR_AWS_s3_access_key" \
-e "MINIO_SECRET_KEY=YOUR_AWS_s3_secret_key" \
minio/minio gateway s3
if you have noticed, we have added only 3 extra words
minio/minio gateway s3
Don’t forget to modify your python code which will be-
Prev-code
from minio import MiniominioClient = Minio('172.17.0.2:9000',
access_key='minioadmin',
secret_key='minioadmin',
secure=False )
NEW-CODE
from minio import MiniominioClient = Minio('172.17.0.2:9000',
access_key='YOUR_AWS_s3_access_key',
secret_key='YOUR_AWS_s3_secret_key',
secure=False )
Hope let’s end this Minio Series here, because we have seen from pulling to local server to pushing into Paid servers/ Clouds.