Step 3: Create Internet Gateway

An Internet Gateway (IGW) enables communication between your VPC and the internet. Without an IGW, your public subnet cannot access the internet.

Create the Internet Gateway

  1. Navigate to VPC Dashboard and select Internet Gateways.
  1. Click Create Internet Gateway.
  1. Enter a name tag: My-Company-IGW
  1. Click Create.

Attach the Internet Gateway to Your VPC

After creating the Internet Gateway, you must attach it to your VPC:

  1. Select the Internet Gateway you just created.
  1. Click Actions and select Attach to VPC.
  1. Select My-Company-VPC from the dropdown.
  1. Click Attach.

Verification

After attaching, the Internet Gateway status should change from detached to attached. The VPC column should display your VPC name.

What the Internet Gateway Does

Function Description
Outbound Traffic Allows instances in your public subnet to access the internet
Inbound Traffic Allows internet users to reach your public-facing servers
NAT for Public IPs Performs network address translation for instances with public IP addresses

Note: The Internet Gateway alone does not provide internet access. You must also configure route tables (next step) to direct traffic through the gateway.


Related Topics

← Back to Index