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?


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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.