Day 3: EC2 on AWS - launch , Connect and host like a pro
🚀 Aspiring Cloud & DevOps Engineer | AWS Free Tier User | Learning by Building
Hi, I’m Sukaran Mahajan — I am working as System Administrator and currently on a focused journey to become job-ready in AWS Cloud, DevOps, and Infrastructure automation. With a growing foundation in Linux, Git, Docker, and Terraform, I’m documenting everything I learn to help others and strengthen my understanding.
💡 Currently Learning: • AWS (EC2, S3, IAM, VPC, Lambda) • Docker, Terraform & Ansible • CI/CD tools (GitHub Actions, Jenkins) • Kubernetes basics
🛠 Hands-on Projects: • Flask + Docker App Deployment • Terraform-based AWS Infrastructure • EC2 SSH automation & S3 access control
📝 I also write beginner-friendly technical blogs on Hashnode: 🔗 https://devopswithsukaran.hashnode.dev
💼 Open to internships, DevOps/cloud roles, and collaborative projects.
Let’s connect and grow in tech together! 🔗
🔍 What is EC2?
Amazon EC2 (Elastic Compute Cloud) lets us rent virtual servers (called instances) in the cloud. You can run applications, host websites, test software, and much more—without needing physical hardware.
\> 💡 Real-Life Example:
Just like you’d rent a hotel room, EC2 lets you rent a remote computer to run your app or site.
---
🛠️ What I Did Today
✅ Launched My First EC2 Instance
Opened EC2 Dashboard
Clicked Launch Instance
Chose:
OS: Amazon Linux 2
Instance Type: t2.micro (Free Tier)
Key Pair: Created .pem file
Network: Default VPC
Storage: 8GB
Launched the instance
✅ Connected via SSH (from WSL or CMD)
chmod 400 my-key.pem
ssh -i my-key.pem ec2-user@<your-ec2-ip>
✅ Installed and Ran a Simple Python Web Server
sudo yum update -y
sudo yum install python3 -y
echo "Welcome to Day 3!" > index.html
python3 -m http.server 8000
🧪 Accessed Webpage in Browser:
http://<your-ec2-ip>:8000
---
🔐 EC2 Security Note
Make sure your Security Group allows inbound rule on port 22 (SSH) and 8000 (for web access).
---
✅ Key Takeaways
EC2 gives you full control of a virtual server in the cloud
You manage storage, access, and software
Great for hosting, testing, and deploying apps
Easy to scale, stop, or terminate when needed
---
🔜 What’s Next?
Tomorrow I’ll be exploring:
S3 Buckets
Uploading files
Hosting a static website from S3
---
🔗 Stay Connected
📝 Blog: DevOpsWithSukaran
🔗 Tags: #AWS, #DevOps, #EC2, #100DaysOfCloud