I'm having a problem with elastic beanstalk, in my application there is some piece of code that creates some files dynamically and now I want to persist these files for future use, so is there any way that I can push my dynamically created files to GitHub automatically, so in next deployment these changes will remain, as elastic beanstalk replace the old code with new code after each deployment, So How can I commit my changes and push them to GitHub repo from code, any suggestions?
You can user aws S3 or other storage service as file back-end. This will sole you problem.
Auto Deploy Elastic Beanstalk Changes