Elastic Beanstalk deployment is very specific to the service.
You can conceivable hack the
eb scripts to make it work for
your EC2 instance. You can look at the
AWSDevTools/aws.elasticbeanstalk.push file that the
eb command creates under the
.git directory. It's
essentially a Ruby script that does the
You can could also look at the
eb script and libraries
themselves which are essentially written in Python.
Nevertheless, I recommend to stick to just a plain node.js deployment
model that has been answered here on SO on some other posts and Internet
blogs. For example: How
to deploy a Node.js application?
You can also take a look at this blog too (which is referred from the
previous SO post)