Under EC2 select launch instances
Select the first instance linux box
and proceed with the setup
Update the box it will probably tell you to do so anyways.
sudo yum update
sudo yum install gcc-c++ make
sudo yum install openssl-devel
sudo yum install git
Specify latest version such as v0.10.31
git clone git://github.com/joyent/node.git
cd node
git checkout v0.10.31
./configure
make
sudo make install
Now you have node -v
and npm -v
sudo nano /etc/sudoers
find Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
add :/usr/local/bin
to the end of the secure_path
Forward all 80
or http requests to 8080
thats where you listen to in the node app
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
Accept connections on port 80
sudo iptables -A INPUT -p tcp -m tcp --sport 80 -j ACCEPT
sudo iptables -A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT