Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon S3 on Heroku with PHP

I would like to enable the use of my Amazon S3 bucket for my Heroku application.

Before Heroku, I was using s3fs to mount the directory directly. Now that this is not possible on Heroku, is there any other way to "link" them together, possibly by still keeping the upload (& resize) scripts still working?

like image 904
carmelo arena Avatar asked Jul 19 '12 12:07

carmelo arena


People also ask

Can I host PHP on S3?

Using an Amazon S3 bucket as a static web host with AWS SDK for PHP Version 3. You can host a static website on Amazon S3. To learn more, see Hosting a Static Website on Amazon S3.

What is S3 Heroku?

Amazon Simple Storage Service (S3) is a durable and available store, ideal for storing application content like media files, static assets, and user uploads. Storing static files elsewhere is crucial for Heroku apps since dynos have an ephemeral filesystem.

Is Amazon S3 free?

Amazon Simple Storage Service (Amazon S3) is an elastically scalable object storage service. The service provides a free tier to get you started, with limited capacity for 12 months.


1 Answers

I guess that should still be possible. Have you taken a look at Using AWS S3 to Store Static Assets and File Uploads?

like image 120
Benjamin Tan Wei Hao Avatar answered Sep 20 '22 17:09

Benjamin Tan Wei Hao