1 minute read

AWS EC2 Instance Launch

What is EC2?

  • Elastic Compute Cloud: Virtual servers in the cloud
  • Scalable: Launch, stop, and terminate instances as needed

EC2 Launch Steps

For SSH connection

1. Access EC2 Service

  1. Sign in to AWS Console
  2. Search for EC2 in services
  3. Click EC2 to open the dashboard

2. Launch Instance

  1. Click Launch instance
  2. Enter Name (e.g., “my-first-instance”)
  3. Select Application and OS Images (Amazon Machine Image)
    • E.g. Amazon Linux 2023
  4. Select Instance type
    • E.g. t3.micro
  5. Create new Key pair
    • Type: RSA
    • File format: choose one for your OS
    • Download .pem or .ppk file
  6. Select Network settings as desired
    • I allowed all traffic
  7. Configure Instance
    • I remained everything else as default
  8. Review and click “Launch instance”

Important Notes

  • Stop instance: Stop instance when not in use to avoid EC2 instance charges. After you stop the instance, you are no longer charged usage or data transfer fees for it. However, you will still be billed for associated Elastic IP addresses and EBS volumes.
  • Terminate: Terminate instances when you don’t neet it any longer to avoid charges.
  • Region: Choose based on pricing, proximity, and regulation.
  • IP address: Whenever restart the EC2 instance, Public IP address changed while Private IP address remains same.