An Internet Gateway allows resources in the public subnet to communicate with the Internet. It must be attached to your VPC and connected to the routing table of public subnets.

Step-by-Step: Create and Attach an Internet Gateway