OK, after several months of trouble, I decided the cause of the problem.
The problem is that on
aws.push
The Elastic Beanstalk team checks if your current files are tied to git or if they are ahead of the repository. If your files are identical to the last git commit, then EB pulls only the difference, but if your files are ahead of the last git commit , then it pulls the whole folder
To avoid problems, I made a deploy.bat file for windows that try to commit changes before the aws.push command:
cls git add . git commit -a git aws.push
Now, if you have already committed before running this .bat file, you will only upload the difference. Otherwise, you will be prompted with a git commit message before downloading the conversation.
PS - Please note that if you try again to click on a version that is already included in EB, it will also try to download the entire folder.
Pss. If for any reason you see that EB is trying to pull out the entire folder, just close the window, make small changes to the source code (for example, adding a new line or comment), save, commit the changes to git and run the deploy.bat file again.
It works like a charm!
Edit:
For those using the new standalone eb cli, the code would be:
cls git add . git commit -a eb deploy your_environmant_name pause
source share