VPC Traffic Flow and Security
Let's continue building our Amazon VPC!
Introducing Today's Project!
What is Amazon VPC?
Amazon VPC is a private, isolated section of a public cloud where you can launch resources. and it is useful because it gives you ownership over your secure network within a larger cloud.
How I used Amazon VPC in this project
In today's project, I used Amazon VPC to simulate a secured web server
One thing I didn't expect in this project was...
One thing I didn't expect in this project was learning so much about networking. it was indeed helpful
This project took me...
This project took me 3 hours.
Route tables
Route tables are tables of rules, called routes, that decide where the data in a network should goes.
Routes tables are needed to make a subnet public because it directs the traffic from the subnet to the IGW, which gives it access to the internet
Route destination and target
Routes are defined by their destination and target, which mean, IP address range that traffic wants to reach. While target means he road or path that the traffic will have to take to get to its destination
The route in my route table that directed internet-bound traffic to my internet gateway had a destination of 0.0.0.0/0 and a target of IGW
Security groups
Security groups are responsible for checking who comes in and out.
Inbound vs Outbound rules
Inbound rules controls the data that can enter the resources, configured an inbound rule that allows request from all IP addresses on the internet.
Outbound rules control the data that our resources can send out. By default, my security group's outbound rule is set to allow all outgoing traffic.
Network ACLs
Network ACLs are responsible for inspecting and managing data packets as they enter and exit VPC's subnets, making sure only authorized data moves in and out.
Security groups vs. network ACLs
The difference between a security group and a network ACL is that, Network ACLs are used to set broad traffic rules that apply to an entire subnet. While Security groups allow for more granular control, managing access to individual resource.
Default vs Custom Network ACLs
Similar to security groups, network ACLs use inbound and outbound rules
By default, a network ACL's inbound and outbound rules will allow all inbound and outbound traffic.
In contrast, a custom ACL’s inbound and outbound rules are automatically set to denied until you add rules about the kind of traffic you'll allow.
Tracking VPC Resources
I created additional VPC, IGW, and SG. Instead of my usual region, I used Asia Pacific(Mumbai). Teams would use multiple regions to improve latency for their end user.
EC2 Global View is a tool where you can find all of your resources. I could even narrow down my search by region Without EC2 Global View, you'd have to switch regions to find your resources.
Now that I've learnt about EC2 Global View, I'd use it again to allow track my resources across multiple regions.