Where to store images in Amazon AWS for use in RDS
I am currently creating a bunch of tables on the MySQL service in Amazon RDS. Several of the tables need to h开发者_如何学运维ave image links in them. What I am trying to figure out, is where do I put the images? Do they go in RDS somewhere? or do i put them in S3 and link them to RDS? If the latter, how do I do that?
I have googled the heck out of this, with no conclusion so any assistance would be great.
Depending on the image sizes, use cases, etc, I would probably store the images in S3.
You can store the S3 path as a database field. You can create a bucket as a domain name (ie, images.example.com), and point the CNAME to the bucket to get direct access to the images. You can also use the various S3 libraries to generate a time limited signed URL if you want to include security.
You can either store them just as binary-data in a column in RDS or you can use S3. If you use S3 you store the http-url to the image in RDS and then get the image over http from S3.
精彩评论