How to handle elastic beanstalk deployment so it uploads only changed files
amazon-elastic-beanstalk, deployment, git
Solution
If I understand correctly, you are asking two questions:
Can you push only changed files? From my understanding, I do not think you can. The entire source bundle is uploaded and could be pushed to the same or different servers. Every time you deploy it is essentially a fresh environment (depending on strategy i.e. blue-green).
Local vs Production config files: In order to use different files, you either need to only provide them in the source bundle, or alter them during the deployment process by adding scripts to a .config file in .ebextensions. Take a look at customizing elastic beanstalk containers
Problem
I am having issue with elastic beanstalk as I am new to AWS. I setup everything and deployed first app, so far so good. But when I pushed another bunch of changes, it just replaced whole files rather than just changed ones. During the development there are different configs at localhost and server so there will be different files, but in this case what you have in local is in server, which is a bit strange. Can you suggest what to do ?