Question: I was asked how to save all the magento media assets in Amazon S3. I thought about using a PHP Stream Wrapper like this one: <https://github.com/punkave/aS3StreamWrapper> and just set the media folder to s3:\mybucket\mediaFolder

Does anyone has experience with this?

Or better use something like this: [https://github.com/sstoiana/magento-s3](https://github.com/sstoiana/magneto-s3)
But this extension doesn't look good. Any other recommendations?

Answer: 
OnePica's CDN extension is not the solution it only works for product images not to mention you need to set the correct TTL for its own cache life time which will timeout much earlier than default Magento. All you cms wysiwyg image will be in media folder but not using S3, you will end up uploading all your media image to S3.

Use cloudfront will be good but you will still need a NFS to share your media folder across all your frontend nodes and backend nodes. Or you need to build your own interface to save file on S3, and you also need to handle errors (think about someone upload extreme large file whether your code can handle that before S3 API timeout)

Other way just save media storage in your extra RDS (database) and individual resize cache image will still save in your app server local media folder, but it is ok as cloudfront will cache them already.
[Found another extension built by arkadedigital](https://github.com/arkadedigital/magento-s3) <https://github.com/arkadedigital/magento-s3>