I have a webapp (call it myapp.com) that allows users to upload files. Webapp will be deployed on an Amazon EC2 instance. I would like these files to return to webapp consumers through a domain with s3 list (i.e. Uploads.myapp.com).
When a user uploads files, I can easily paste them into a folder named "site_uploads" on a local ec2 instance. However, since my ec2 instance has limited storage, with a lot of downloads, the ec2 file system will fill up quickly.
It would be great if the ec2 instance could mount s3 bucket as the site_upload directory as well. So uploading to the EC2 directory "site_upload" automatically ends at uploads.myapp.com (and my webapp can use template tags to make sure the links for this downloaded content are based on this supported s3 domain). It also gives me a scalable file service, as the file request falls into s3, and not into the ec2 instance. In addition, it makes it easier for my webapp to scale / resize images that appear locally in "site_upload" but actually on s3.
I look at s3fs, but judging by the comments, this doesn't seem like a completely baked solution. I am looking for a non-profit solution.
FYI, webapp is written in django, and not that it changes data too much.
sghael
source share