I have a PHP API that will be hosted on Elastic Beanstalk. The user uploads images to this API. Once the API gets it, in PHP I store the file in a temp folder, then resize it to multiple sizes then upload it to an S3 Bucket.
It works locally but I haven't put this live yet. Is this possible to do once it is on an elastic beanstalk instance? I know I have to give write permissions to the temp_image directory when I work with it locally so do I have to do this when it's live on elastic beanstalk? If so, how do I manage folder directories on an elastic beanstalk? And will I have to do this every time I update my API?
Another solution I thought of is having a temp_image S3 Bucket and working from that?