3

The Elastic Beanstalk documentation says:

You can use the commands key to execute commands on the EC2 instance. The commands are processed in alphabetical order by name, and they run before the application and web server are set up and the application version file is extracted.

Should I understand that this is only run when the server is first set up, and not on further deployments?

BenMorel
  • 4,507
  • 10
  • 57
  • 85

1 Answers1

1

The commands in the .ebextensions configuration are executed on each deployment. For example, you can stop a Windows Service, reinstall it, and start it again after each deployment (in one command with a batch file or with three separate commands).

marco
  • 169
  • 2