Internet Gateway (IGW) & Route Tables
Internet Gateways and route tables are fundamental components of VPC networking. They enable internet connectivity and control traffic routing within your VPC.
Internet Gateway
An Internet Gateway is a horizontally scaled, redundant, and highly available VPC component that allows communication between instances in your VPC and the internet. It provides bidirectional internet access and performs NAT for instances with public IPv4 addresses.
Route Tables
Route tables control where network traffic is directed. Each subnet must be associated with a route table. Routes specify destination CIDR blocks and targets (like IGW, NAT Gateway, or VPC peering connections).
Routing Configuration
For public subnets, route tables need a route to the Internet Gateway (0.0.0.0/0 -> igw-id) to enable internet access. For private subnets, you typically route traffic to a NAT Gateway for outbound internet access, or keep them isolated.
