AWS Internet Gateway

· Updated · 1 min read · AWS Networking and Content Delivery · Cloud service

An AWS Internet Gateway is a component that facilitates communication between instances within an Amazon Virtual Private Cloud (VPC) and the Internet. It acts as a gateway for internet-bound traffic, allowing resources within a VPC, like EC2 instances, to access the Internet and receive responses from Internet resources.

The following diagram from the Terraform, AWS, and Ansible together tutorial shows an Internet Gateway providing Internet connectivity to a VPC.

Region
Region
Availability Zone
Availability Zone
VPC
VPC
ditlw-vpc
ditlw-vpc
ditwl-rt-pub-main
ditwl-rt-pub-main
Public subnet
Public subnet
ditwl-sn-za-pro-pub-00
ditwl-sn-za-pro-pub-00
172.21.0.0/23
172.21.0.0/23
us-east-1a
us-east-1a
us-east-1
us-east-1
ditlw-ig
ditlw-ig
Users / Web Browser
Users / Web Browser
Internet
Internet
Text is not SVG - cannot display

Internet Gateways are attached to a VPC and provide a target for traffic destined for public IP addresses or the internet. They enable bidirectional communication—allowing resources within the VPC to initiate outbound connections to the internet and also receive incoming responses from the internet.

For the Internet Gateway to route traffic, it has to be used as a routing destination in the route table of a subnet, or in the main route table of the whole VPC. Instances also need a public IP address (automatic, or an Elastic IP) to be reachable from the Internet. Instances in private subnets use a NAT Gateway instead.

An Internet Gateway is horizontally scaled, redundant and highly available, and has no cost: only the data transfer is charged. It is created with the Terraform resource aws_internet_gateway.

See tutorials using an Internet Gateway:

More tutorials that use Internet Gateway

#AWS #Internet