βœ… Day 4 of My Cloud Journey ☁ – EC2 + Linux + IPs + Ports & Protocols

Pratik DasPratik Das
2 min read

Welcome to Day 4 of my #30DaysOfCloud series!

Today was packed with hands-on learning. I explored Amazon EC2, Linux basics, and got a clearer understanding of IP addressing, ports, and protocols in the cloud.


πŸ”Ή What is EC2?

Amazon EC2 (Elastic Compute Cloud) offers scalable virtual servers in the AWS cloud.
You can run applications without managing physical infrastructure.

🧩 Choose from a variety of instance types based on workloads:

  • General Purpose

  • Compute Optimized

  • Memory Optimized


πŸ› οΈ How I Launched My First EC2 Instance

Steps via AWS Console:

  1. Go to EC2 β†’ Launch Instance

  2. Choose Amazon Linux 2023

  3. Select t2.micro (Free Tier eligible)

  4. Create/select a key pair

  5. Configure networking with a Public IP

βœ… After launch, connect via SSH:

ssh -i "key.pem" ec2-user@<Public-IP>

🐧 What is Linux?

Linux is a powerful, open-source operating system that powers most of the cloud. It's lightweight, secure, and ideal for server environments.

πŸ” Why Linux Matters in the Cloud

  • Lightweight and resource-efficient

  • CLI-based control over servers

  • Powers services like EC2, Lambda, Docker

  • Essential for DevOps, automation, and scripting

πŸ‘‰ Most EC2 instances use Amazon Linux, optimized for security and cloud performance.


🌐 Understanding IPs in Cloud Networking

  • Private IP β†’ Internal communication within a VPC

  • Public IP β†’ Accessible over the internet (e.g., SSH, web apps)

You typically need a public IP to connect to an EC2 instance from your local machine.


πŸ”Ή Key Ports & Protocols

Common Ports:

  • 22 β†’ SSH (Secure Shell access to Linux servers)

  • 80 β†’ HTTP (Web traffic)

  • 443 β†’ HTTPS (Secure web traffic)

Common Protocols:

  • TCP β†’ Reliable, connection-oriented

  • UDP β†’ Fast, connectionless (used for streaming, DNS, etc.)

  • HTTP/HTTPS β†’ Web protocols built on top of TCP


πŸ’‘ Final Thoughts

This day laid the groundwork for working with real cloud infrastructure.
From launching EC2 to understanding how Linux, IPs, and ports work β€” these are essential skills for any cloud engineer.

πŸ“… Up Next (Day 5):
I'll explore Security Groups, Inbound/Outbound Rules, and basic EC2 security best practices.

Let’s keep learning and building πŸš€
Feel free to follow or comment if you're on this journey too!

0
Subscribe to my newsletter

Read articles from Pratik Das directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Pratik Das
Pratik Das