Launching an EC2 Instance π β
Now that you know about families, sizes, and AMIs, itβs time to launch your very first EC2 instance β your personal cloud PC.
Donβt worry, itβs easier than brewing instant noodles π.
Step 1: Open the AWS Management Console β
- Login to your AWS account
- Navigate to Services β EC2
- Click Launch Instance β your adventure begins! π±οΈ
Step 2: Choose an AMI β
Pick your βpre-cooked kitchenβ:
- Amazon Linux / Ubuntu β beginner-friendly, free π
- Windows β if you love RDP and Windows apps πͺ
- Marketplace AMIs β preconfigured for apps like WordPress or Docker π§°
Tip: Start simple β Ubuntu or Amazon Linux is perfect for noobs.
Step 3: Choose Instance Type & Size β
Remember our apartment analogy? Pick wisely:
Size | Use Case |
---|---|
Nano | Tiny test scripts πΌ |
Micro | Small websites π± |
Small | Small apps π οΈ |
Medium | Medium apps π¦ |
Large | Web servers π |
Xlarge | Medium production π |
2Xlarge | Heavy-duty palace π |
Tip: Start small, scale later. You can always upgrade your βapartmentβ π’
Step 4: Configure Instance β
- Network & Subnet β usually default is fine π
- IAM Role β optional, only if your instance needs AWS permissions π‘οΈ
- Shutdown behavior β decide if you want to stop or terminate instance when shutting down βΉοΈ
- Advanced options β leave for later, noob-friendly settings are enough for now π
Step 5: Add Storage β
- Default storage is usually 8β20 GiB SSD ποΈ
- Increase if needed, but remember Free Tier has limits β οΈ
Step 6: Configure Security Groups β
- Security groups = firewall rules π₯
- Allow SSH (port 22) for Linux or RDP (port 3389) for Windows
- Pro tip: Only allow your IP β donβt leave the door wide open π°
Step 7: Add Key Pair β
- Key pair = your magic key to enter the instance ποΈ
- Either create a new one or use an existing key
- Download
.pem
file and keep it safe β losing it = no entry π±
Step 8: Launch Your Instance β
- Click Launch
- Wait a few minutes while AWS spins up your cloud PC β³
- Connect via SSH (Linux) or RDP (Windows)
Congratulations! π You just launched your first EC2 instance. Your cloud adventure begins now.