- launch an ec2 instance
- visit security
- click on launch wizard 1
- edit security group and add an inbound rule
- select type http with port 80 and select source as anywhere (0.0.0.0/0)
- open your computer's terminal
- locate your instance private key
- connect using this command
sudo ssh -i "privateKey.pem" instance.compute-1.amazonaws.com