http://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_delegate-permissions_examples.html goto IAM -> create policy -> attach policy to users

ses docs http://docs.aws.amazon.com/ses/latest/DeveloperGuide/best-practices-bounces-complaints.html

Creating a key pair

chmod 0400 <your-key>.pem

Creating a security group

TODO

http://www.lauradhamilton.com/how-to-set-up-a-nodejs-web-server-on-amazon-ec2

Configuring the instance to work with a node.js server

cat /proc/sys/net/ipv4/ip_forward

a return value of zero indicates thats ip forwarding is disabled. A 1 means it’s enabled.

sudo vim /etc/sysctl.conf

In this file, uncomment this line:

net.ipv4.ip_forward

This will enable ip forwarding. Then, to enable the changes made in sysctl.conf:

sudo sysctl -p /etc/sysctl.conf

Now, let’s check that ip forwarding is enabled:

cat /proc/sys/net/ipv4/ip_forward

That should return a 1 now.

set up forwarding from 80 to 8080:

sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080

Next, we need to open the Linux firewall to allow 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