EC2 (Elastic Compute Cloud) is a virtual server in AWS. We’ll launch one inside the public subnet to test internet connectivity and host a simple app.
Step-by-Step: Launch EC2 in Public Subnet (Ubuntu)
- Go to the EC2 Dashboard
- Click “Launch Instance.”

- Key Pair (Login)
- Network Settings
- Firewall (Security Group)
- Launch Instance