I'm trying to deploy my node server on Elastic Beanstalk but it won't work because the latest version Elastic Beanstalk supports out of the box is 0.12.6 (July 2015). Using either io.js or the latest node version (4.1.2) are both viable options but it isn't clear how to get the ec2 instances spun up by beanstalk to do this.
I've tried a bunch of stuff including:
- adding the 4.1.2 source to my .ebextensions config file and then updating the reference in
/tmp/deployment/config/#etc#init#nodejs.conf
butconsole.log(process.argv)
was still 0.12.6. What's more, the second time I run this I get sometext file busy
error presumably because it's trying to change the source of the node package while node is still running... (see https://forums.aws.amazon.com/thread.jspa?threadID=169385) - adding a file that downloads the 4.1.2 source and ungzips it and updates the reference like in https://github.com/kopurando/better-faster-elastic-beanstalk but this didn't seem to work either (version still 0.12.6)
Why is it so hard to just run the latest stable version of node and something that has been widely supported for 4 months on AWS?