AWS Elastic Beanstalk : How to change node command ? Container Options removed in recent update?

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.

enter image description here

But in the recent update I suppose they’ve removed this option, now how do I configure my on-startup command?

enter image description here

Answer

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