Where to store images in Amazon AWS for use in RDS

I am currently creating a bunch of tables in a MySQL service in Amazon RDS. Some tables should have links to images. What I'm trying to figure out is where I put the images? Do they go to RDS somewhere? or do I put them in S3 and associate them with RDS? If the latter, how to do it?

I was looking for this from this, with no conclusion, so any help would be great.

+6
source share
2 answers

Depending on image sizes, use cases, etc., I would probably save the images in S3.

You can save the S3 path as a database field. You can create a bucket as a domain name (for example, images.example.com) and specify a CNAME in the bucket to get direct access to the images. You can also use various S3 libraries to generate expired URLs if you want to enable security.

+5
source

You can store them as binary data in a column in RDS or use S3. If you use S3, you store the http-url on the image in RDS, and then get the image via http from S3.

+1
source

Source: https://habr.com/ru/post/893419/