I recently deployed a django app to AWS elastic beanstalk. I have used boto3 to enable storing my videos to the s3 bucket. But i need to convert the video files on the local storage before storing it on S3. I use moviepy and ffmpeg to convert the videos. But when I try to upload the files, I get an error "[errno 32] broken pipe moviepy error: ffmpeg encountered the following error while writing file /home/ec2-user/mount_point/u3files/temp_files/21editedtemp_mpy_wvf_snd.mp3: /home/ec2-user/mount_point/u3files/temp_files/21editedtemp_mpy_wvf_snd.mp3: permission denied".
I have already chmod 777 on the root folder of the volume and 'u3files' folder inside the local storage. Is there anything I am missing? How do I solve this? I am new to AWS beanstalk and any help would be appreciated. Thanks.