

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Virtual Private Cloud (VPC)
incomplete
2: CIDR Blocks
incomplete
3: Subnetting
incomplete
4: Internet Gateways (IGW)
incomplete
5: Route Tables
incomplete
6: Private Subnets
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
A subnet becomes public by connecting it to a route table and an internet gateway, but what about our private subnets?
An IGW would make the subnet non-private and expose it to the internet. That is too risky for some resources.
On the other hand, we don't want to completely cut off private infrastructure from internet access. Using a floppy disk to download updates is not exactly an option in the cloud.
A private subnet is a subnet whose resources are not accessible from the internet directly, but can still have some internet connectivity. AWS gives us a few options to do that.
We "could" leave everything in a public subnet and regulate access with a firewall. However, I prefer a belt and suspenders approach to security for multiple layers of protection. One good option is to use a NAT (Network Address Translation), which lets us keep a subnet private but still allow outbound access when we need it.
Almost certainly, your computer right now is using a NAT. Home, coffee shop, office, whatever. Your router is "lending" you its public IP address when you talk to resources outside the local network.
Cost check: AWS NATs can be expensive. We won't deploy one fully, but we'll do everything up to that point.
PatientPing doesn't have the budget for a NAT right now, but we do want a private route table. Create one and attach it to our private subnets.
We can add internal routes later; we just needed to make sure the private subnets don't use the public route table.
Run and submit the CLI tests.