A few weeks ago, I started turning the Kubernetes commands I use every day into something I could actually keep as a reference.
Days of writing.
Reviewing commands.
Creating diagrams.
Simplifying explanations.
Going through every page again and again.
It finally became a 20-page Kubernetes Handbook. βΈοΈ
I decided to give it away for free to DevOps & Kubernetes learners.
Less Googling. More practicing. π
π Free download: https://t.co/sk8GgQphlU
36. You launched an EC2 instance.
But what actually happened? π
You didn't just create a server.
You selected:
β AMI
β Instance type
β VPC / Subnet
β Security Group
β Storage
β Optional public IP / key pair
Then AWS provisions the pieces:
Compute
β Virtual server with your selected CPU/memory
Networking
β Primary ENI
β Private IP from the subnet
Storage
β Root EBS volume for an EBS-backed AMI
Security
β Security Group controls network traffic
Then the instance goes through:
Pending β Running β Status checks β Ready
That one Launch button is actually triggering the setup of compute, networking, storage and security.
That's what EC2 is really doing behind the scenes. π
36. You launched an EC2 instance.
But what actually happened? π
You didn't just create a server.
You selected:
β AMI
β Instance type
β VPC / Subnet
β Security Group
β Storage
β Optional public IP / key pair
Then AWS provisions the pieces:
Compute
β Virtual server with your selected CPU/memory
Networking
β Primary ENI
β Private IP from the subnet
Storage
β Root EBS volume for an EBS-backed AMI
Security
β Security Group controls network traffic
Then the instance goes through:
Pending β Running β Status checks β Ready
That one Launch button is actually triggering the setup of compute, networking, storage and security.
That's what EC2 is really doing behind the scenes. π
36. You launched an EC2 instance.
But what actually happened? π
You didn't just create a server.
You selected:
β AMI
β Instance type
β VPC / Subnet
β Security Group
β Storage
β Optional public IP / key pair
Then AWS provisions the pieces:
Compute
β Virtual server with your selected CPU/memory
Networking
β Primary ENI
β Private IP from the subnet
Storage
β Root EBS volume for an EBS-backed AMI
Security
β Security Group controls network traffic
Then the instance goes through:
Pending β Running β Status checks β Ready
That one Launch button is actually triggering the setup of compute, networking, storage and security.
That's what EC2 is really doing behind the scenes. π
35. Your application can't reach the backend. π¨
Security Group looks fine.
NACL looks fine.
Routes look fine.
So what actually happened?
Check VPC Flow Logs.
They can give you evidence about the traffic:
β Source IP
β Destination IP
β Port / Protocol
β Bytes / Packets
β ACCEPT / REJECT
For example:
"10.0.1.10 β 10.0.2.20:443 β REJECT"
Now you know the traffic was rejected.
Then investigate:
β Security Groups
β NACLs
β Route Tables
β Other network configuration
But remember:
Flow Logs don't block traffic.
They record what happened.
Simple mental model:
VPC Flow Logs = network evidence π
Don't guess.
Check the flow.
35. Your application can't reach the backend. π¨
Security Group looks fine.
NACL looks fine.
Routes look fine.
So what actually happened?
Check VPC Flow Logs.
They can give you evidence about the traffic:
β Source IP
β Destination IP
β Port / Protocol
β Bytes / Packets
β ACCEPT / REJECT
For example:
"10.0.1.10 β 10.0.2.20:443 β REJECT"
Now you know the traffic was rejected.
Then investigate:
β Security Groups
β NACLs
β Route Tables
β Other network configuration
But remember:
Flow Logs don't block traffic.
They record what happened.
Simple mental model:
VPC Flow Logs = network evidence π
Don't guess.
Check the flow.
35. Your application can't reach the backend. π¨
Security Group looks fine.
NACL looks fine.
Routes look fine.
So what actually happened?
Check VPC Flow Logs.
They can give you evidence about the traffic:
β Source IP
β Destination IP
β Port / Protocol
β Bytes / Packets
β ACCEPT / REJECT
For example:
"10.0.1.10 β 10.0.2.20:443 β REJECT"
Now you know the traffic was rejected.
Then investigate:
β Security Groups
β NACLs
β Route Tables
β Other network configuration
But remember:
Flow Logs don't block traffic.
They record what happened.
Simple mental model:
VPC Flow Logs = network evidence π
Don't guess.
Check the flow.
34. Route 53 Routing Policies βοΈ
Same domain.
Different routing requirements.
Which one do you choose?
β Simple - One destination
β Weighted - Split traffic between resources
β Latency-based - Send users to the Region with the best network latency
β Failover - Primary β Backup when the primary is unhealthy
β Geolocation - Route based on user location
A simple way to remember:
One destination?
β Simple
Split traffic?
β Weighted
Best latency?
β Latency-based
Primary + backup?
β Failover
User location matters?
β Geolocation
Route 53 isn't just DNS resolution.
It can also control how DNS queries are answered. π
35. Your application can't reach the backend. π¨
Security Group looks fine.
NACL looks fine.
Routes look fine.
So what actually happened?
Check VPC Flow Logs.
They can give you evidence about the traffic:
β Source IP
β Destination IP
β Port / Protocol
β Bytes / Packets
β ACCEPT / REJECT
For example:
"10.0.1.10 β 10.0.2.20:443 β REJECT"
Now you know the traffic was rejected.
Then investigate:
β Security Groups
β NACLs
β Route Tables
β Other network configuration
But remember:
Flow Logs don't block traffic.
They record what happened.
Simple mental model:
VPC Flow Logs = network evidence π
Don't guess.
Check the flow.