Execute the following steps to create public and private VPCs:
- Select Subnets from the VPC Dashboard menu and then select the blue Create subnet button:
- Configure the first subnet, which will become our public subnet, as shown in the following screenshot. Depending on your region, select the first Availability Zone within the region:
- Select Create. Your subnet named Public_Subnet has now been created. Now you need to repeat that process for a second subnet, which will become our private subnet. Configure the second subnet as shown in the following screenshot. This time, select the second Availability Zone within the region:
- Once done, select Create. Your subnet named Private_Subnet has now been created.
Your infrastructure will now look as shown here:
Now we have our VPC and subnets, and in particular, our Public_Subnet created, we can create and attach an IGW.