In the previous section, we configured the RAM and CPU of our EC2 instance. In this section, we will learn how to create a new VPC and Subnet for our EC2 instance.
Once we have selected t2.micro as our instance type, we are presented with the Configure Instance Details page:
In this section, we will see how we can configure the following options:
- Number of Instances: This is left for the reader to decide how many instances are to be launched. For this chapter, we are launching one instance only.
- Network: We will take a look at how to create a new VPC for our EC2 resources.
- Subnet: We will look at separating our EC2 resources into different subnets within a VPC.
- Auto-assign Public IP: We will enable this so that we can access it from our machine.
Let's start by creating a VPC:
- By clicking on the Create new VPC link, we are taken to the VPC Dashboard...