Route Tables, Internet Gateways, and NAT Gateways

Learn how to restrict access to resources inside VPC using route tables, internet gateway, and NAT gateway.

Route tables

Route tables contain a set of rules that serve as guides for directing network traffic within a VPC. They determine where network traffic from our network or gateways should be routed. By default, every VPC is created with a main route table, and each subnet in the VPC is automatically associated with this main route table. The main route table cannot be deleted. However, we can modify its routes.

We do have the option of creating customized route tables for our subnet. One thing to keep in mind here is that we can only attach one route table with one subnet, whereas multiple subnets can be associated with a single route table.

Get hands-on with 1200+ tech skills courses.