How AWS VPC Works Intro Tutorial
Tung Nguyen
Creator of Jets, Terraspace, Lono, Kubes, Ufo, Cody / AWS Container Hero / Proud Dad
I’ll provide a basic introduction to the mysterious VPC world. I’ll explain terms using various diagrams. We’ll also build a simple VPC network out manually to help understand VPCs.
Answers to questions (close your eyes and watch the video first if you don't want to know the answers yet):
Why should we create route tables vs using the main route table?
A: Every time you create new subnet it uses your "main" route table. So if added a IGW route to the main route table in an effort to allow traffic out. This violates a security best practice which is that newly created subnets by default should be private.
Is the NAT gateway is associated with the public subnet or private subnet?
A: The NAT gateway should be on the public subnet so it has access to the internet to do its thing. If it's on the private subnet it won't work.
What makes a subnet public?
A: You simply associate the subnet with a (public) route table that has an IGW route.
What network component is a security group associated with?
A: The only network component that a security group is associated with is the entire VPC. Security groups are not associated with any other network components. They are associated with other types of AWS resources like EC2 instances, ELBs, RDS DBs, etc.
Google Slides: How AWS VPC Works Intro
Hope you find this tutorial helpful ??.
Thanks for reading this far. If you found this article useful and would like to see more articles like this follow me. I'd really appreciate it also if you like this article (by clicking the ?? button) so others can find it too! Also connect with me on LinkedIn.
P.S. Be sure to subscribe to receive free DevOps tips and updates.