I had deployed a node.js application on Elastic Beanstalk recently and it gave me container options so that I could change the command to be run on startup.
But in the recent update I suppose they’ve removed this option, now how do I configure my on-startup command?
AWS has changed the process recently. Now you have to upload a
Procfile with all your application files. The same approach exists in
Heroku as well.
The content of
Procfile should be:
web: node index.js (i.e specify the node command to be run for your application)
Official Documentation : https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_nodejs.container.html