To complete the steps within this recipe, we need a custom VPC with the following configurations:
- Create a VPC by following the Creating a VPC in AWS recipe. Create some subnets by following the Creating subnets in a VPC recipe.
- An internet gateway and a route table with a route for the internet gateway. Then, we need to associate our public subnet with that route table, as shown in the Configuring an internet gateway and a route table for internet access recipe.
- Launch instances in the public and private subnets with the appropriate security group configurations by following the Configuring a security group and launching an instance into a VPC recipe in Chapter 6, Working with EC2 Instances.