EC2 Overview

EC2 Instances

  • actual virtual machine
  • It has memory cpu os inside it

Elastic IPs

  • gives you static ip ( not auto assigned )
  • you can assign that to any EC2 instance you created

Connect with Instance

  • SSH - Port 22 in inbound rule of SG
  • You need .pem key
ssh -i "key_path.pem" ubuntu@ec2-3-4-177.ap-south-1.compute.amazonaws.com
  • you can use your instance remotely
  • Inbound rule for port 22 from Anywhere required