Course contentsShow
← Cloud and Infrastructure
Lesson 187 of 2,9894. Cloud Networking BasicsFree lesson

Internet Gateway Fundamentals

Learn what an internet gateway is and how it enables VPC resources to communicate with the public internet.

Internet Gateway Fundamentals

What you'll learn: How an internet gateway acts as the doorway between your private cloud network and the public internet.


What Is an Internet Gateway?

An internet gateway is a managed cloud component that allows resources inside your Virtual Private Cloud (VPC) to communicate with the internet. Without it, your VPC exists in complete isolation—like a house with no doors or windows to the outside world.

Think of your VPC as a private office building. The internet gateway is the main entrance lobby that allows people (data packets) to come in from the public street (internet) and go out to it. Without this lobby, employees inside can talk to each other, but nobody can receive mail, make phone calls outside, or welcome visitors.

How It Works

When you create a VPC, it starts completely private. To enable internet access:

  1. Attach an internet gateway to your VPC (one per VPC)
  2. Update route tables in public subnets to direct internet-bound traffic (0.0.0.0/0) to the gateway
  3. Assign public IP addresses to resources that need internet access

The internet gateway performs two key functions:

  • Outbound: Translates private IP addresses to public IPs for resources making requests to the internet
  • Inbound: Routes incoming internet traffic to the correct resource's private IP address

Public Subnet Connection

Remember that subnets are "public" only when their route table points internet traffic to an internet gateway. The gateway itself doesn't distinguish between subnets—the routing configuration does.

Key Takeaway: An internet gateway is the managed, highly available bridge between your VPC's private network and the public internet, enabling bidirectional communication when paired with proper routing and public IP addresses.