Setting up an AWS EC instance

  • Go to the EC page
  • Launch Instance
  • Select Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-87564feb
  • Select t2.micro (Free tier eligible)
  • Select Next: Configure Instance Details
  • Select Next: Add Storage
  • Select Next: Tag Instance
  • Give a Name to the Instance
  • Select Next: Configure Security Group
  • Create a new security group
  • Add a Security group name
  • Add a Description
  • Add rule by clicking Add Rule
  • First rule should be Custom TCP Rule, TCP Protocol, Port 80 for source Anywhere
  • Click on Launch
  • Select Review and launch
  • In the pop-up, select Create a new key pair
  • Fill in a Key pair name
  • Download the Key Pair and save in a secure location
  • Go to the instance page and wait until the machine is ready

  • On your computer, change the permissions of the key pair you just downloaded

      $ chmod 400 keypairfile.pem
  • Connect to the machine via ssh. Click on the Connect button in the instance overview for connection information
      $ ssh -i keypairfile.pem