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?