Launching Your First EC2 Instance
Steps to Launch:
- Choose AMI: Select Amazon Linux 2 or Ubuntu.
- Choose Instance Type: Select
t2.micro (Free Tier eligible).
- Configure Network: Default VPC is fine for now.
- Add Storage: Default 8GB SSD.
- Add Tags: Name your instance (e.g., 'My-Web-Server').
- Security Group: Open Port 22 (SSH) for Linux or 3389 (RDP) for Windows.
- Key Pair: Download the
.pem file. Crucial! You cannot login without it.
How to Connect:
- Linux/Mac: Use terminal:
ssh -i key.pem ec2-user@ip-address.
- Windows: Use PuTTY or EC2 Instance Connect via browser.