2

I have a similar question to Pushing to an existing AWS Elastic Beanstalk application from the command line and Git pushes entire project even if few files are changed. AWS but did not see the answer I am looking for.

There have been comments about the confusing changes to Amazon's documentation because different versions of the documentation state they are the latest when some functions have actually been replaced and I think a new question is warranted now.

I used the Deploying a Symfony2 Application to AWS Elastic Beanstalk guide to setup my dev app and it works great. After I make several changes and want to update the aws app, I use git aws.push which creates a new version of my app and restarts the server.

I do not have my configuration files finalized (this is just a dev app) and need to manually run several commands on the remote server before my app can be viewed. For very minor temporary changes, I connected to the remote server via ssh and edited the php files directly which works fine. This way the server does not need to be restarted because everyimt I use git aws.push the server restarts. I would like to have a method to update those files using git without restarting the entire server/app.

Main question - Is there anyway I can push only the files that were changed in the recent commit and not have the server restart?

Side question for new aws commands - Should I use the eb commands Getting Started with EB CLI 3.x and use eb deploy instead of the git command?

Community
  • 1
  • 1
George
  • 1,478
  • 17
  • 28

1 Answers1

1
  1. No, currently there is no scenario where Elastic Beanstalk pulls changes without reinitiating and restarting server.

You can try to write your own workaround for that purpose, but you will need to mention files that need to be updated manually and be sure that files will be delivered to each EB instance. If you are pushing from windows don't forget to convert line ending dos2unix.

  1. eb deploy is a canonical command for aws.push

  2. If you experience "full upload" issue instead of sending "only changes", please read my fresh answer here: Elastic Beanstalk "git aws.push" only commited difference?

Community
  • 1
  • 1
Kainax
  • 1,431
  • 19
  • 29