In this recipe, we will create an internet gateway and configure it through a route table. We will associate the subnet we want to be public with this route table.
Configuring an internet gateway and a route table for internet access
Getting ready
Create a VPC by following the Creating a VPC in AWS recipe. Create a public and private subnet by following the Creating subnets in a VPC recipe.
How to do it...
First, we will create and attach an internet gateway to our VPC, as follows:
- Go to the VPC service in the console.
- Click on Internet Gateways from the left sidebar...