Create a VPC manually
Welcome to CloudAffaire and this is Debjeet
In the last blog post, we have created a VPC using Launch VPC Wizard.
In this blog post we are going to create a VPC manually and explore different components that are automatically created when you create a new VPC. Below is the configuration diagram for this demo.
We are going to create our VPC using 10.0.0.0/16 IPv4 CIDR.
Create a VPC manually:
Step 1: Login to AWS console and navigate to ‘VPC’.
Step 2: Click ‘Create VPC’ located under ‘Your VPCs’.
Step 3: Provide your VPC name and IPv4 CIDR block. Click ‘Create’.
Note: You can also assign an IPv6 CIDR block for your VPC and define tenancy.
One success message will be displayed, click ‘Close’.
We have successfully created the VPC manually.
Next, we are going to explore different components of VPC that are automatically created with this new VPC. By default, each VPC comes with an implicit router, security group and a network access control list (ACL).
Step 4: Navigate to ‘Route Tables’.
Note: Each VPC comes with an implicit router and one main route table. The function of the router is to route traffic to a specific destination. The router directs the traffic based on route table entry. A route table contains a set of rules, called routes, that are used to determine where network traffic is directed. You can also create a custom route table.
Step 5: Navigate to ‘Security Groups’.
Note: Security group acts as a virtual firewall to control both inbound and outbound traffic to your instance. By default, VPC comes with a default security group and is used by instance as a security group if security group not explicitly defined during instance creation. You can create your own security group as well.
Step 6: Navigate to ‘Network ACLs’.
Note: A network access control list (ACL) is an optional layer of security for your VPC that acts as a firewall for controlling traffic in and out of one or more subnets. You might set up network ACLs with rules similar to your security group in order to add an additional layer of security to your VPC. ACL acts as firewall to the entire subnet whereas security group controls instance level. You can create your own ACL. We will cover route tables, security groups and ACL in details in future blogs.
Cleanup: Navigate to ‘Your VPCs’, select your VPC and from action click ‘Delete’.
Note: We will use this same VPC and existing configuration in upcoming blogs, hence if you wish to continue then don’t delete your VPC.
Currently, our VPC does not have any subnet inside it. In the next blog post, we are going to create a subnet inside this VPC. Our objective is to cover most of the VPC components one by one through a demo to make your understanding clear.
To get more details on VPC, please refer below AWS documentation