Internet Gateway
Internet Gateway in Amazon VPC
ℹ️ What is an Internet Gateway?
- An Internet Gateway (IGW) is an essential component of an Amazon VPC
- It allows resources within the VPC to communicate with the internet
- It scales automatically and offers high availability
- It acts as a target in the VPC’s route table
💡 How It Works
- Performs network address translation (NAT) between private and public IPs
- Scales automatically to handle traffic
- Maintains a 1:1 mapping between private IPs and public IPs
- Requires no management or maintenance from users
⚠️ Important Notes
- An EC2 instance only recognizes its own private IP
- A public IP or Elastic IP is required to connect to the internet
- The IGW automatically handles the address translation
🔒 Security and Connectivity
- The IGW only allows traffic that is routed through the route table
- Requires proper security group and NACL configuration
- Supports both IPv4 and IPv6 traffic
