Internet Gateway (IGW)
Enables two-way IPv4 and IPv6 traffic between a VPC and the internet.
Official AWS Reference https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html ↗// DECISION LOGIC MATRIX
When to Choose
Resources have public IPv4 or IPv6 addresses and their route table points at the IGW.
When to Avoid
Instances must be outbound-only. Use a NAT gateway.
// EXAM TRAPS & SIGNAL KEYWORDS
// OFFICIAL AWS REFERENCE
"An internet gateway is a horizontally scaled, redundant, highly available VPC component allowing communication between your VPC and the internet. It supports IPv4 and IPv6 and adds no availability risk or bandwidth constraint."
- A subnet is public if its route table has a route to an internet gateway, private if it does not.
- For IPv4 the IGW performs one-to-one NAT between the private address and the public or Elastic IP.
- No charge for the internet gateway. EC2 data transfer charges still apply.
// INTERNET GATEWAY (IGW) TAKEAWAYS
Role: Enables two-way IPv4 and IPv6 traffic between a VPC and the internet.
Choose: Resources have public IPv4 or IPv6 addresses and their route table points at the IGW.
Avoid: Instances must be outbound-only. Use a NAT gateway.
Trap: Watch for exam signals like private subnets, outbound-only, bandwidth bottleneck.
Fact: A subnet is public if its route table has a route to an internet gateway, private if it does not.
Fact: For IPv4 the IGW performs one-to-one NAT between the private address and the public or Elastic IP.
Fact: No charge for the internet gateway. EC2 data transfer charges still apply.
// PRACTICE QUESTIONS
Ready to test your Internet Gateway (IGW) knowledge?
2 practice questions cover Internet Gateway (IGW).