Welcome to the world of Virtual Private Cloud(VPC). In this article, I am just going to talk about all VPC components which helpful for your SAA-02 Exam. Here, VPC divided into three parts. First two-part, I describe the theoretical concept of VPC. In the final part, I will show the hands-on/simulation of VPC.
VPC → A virtual private cloud is a virtual network that costly resembles traditional networking that you can own a datacentre with the benefits of using the scalable Infra-Structure of AWS.
You can say that VPC is a virtual network on a data center inside AWS for one client.
→ It logically isolated from another virtual network in the AWS.
→ Max 5 VPC can be created and other 200 subnets in 1 VPC.
→ You can allocate the max. 5 Elastic IP.
→ Once you created VPC then the default DHCP, NACL, and Security Group will be created automatically.
→ A VPC is confined to one AWS region and doesn’t extend between regions.
Component of VPC :
- Implied Router and Routing Table
- Internet Gateway
- Security Groups
- Network ACL
- Virtual Private Gateway (VPN)
- Peering Connection
- Elastic IP
Types Of VPC :
There are two types of VPC in AWS
- Default VPC: Default VPC is created in each AWS region, When an AWS account is created.
→ Default VPC has a default CIDR, Security groups, NACL, and Route Table settings.
→ Default VPC has an Internet Gateway by default.
Note: If you delete the default VPC now there is a way to recover it.
2. Custom VPC: Custom VPC created by AWS owner.
→ AWS users creating the custom VPC can decide the CIDR.
→Has it’s own default Groups, Network ACL, and Route Table.
→ Doesn’t have an Internet Gateway by default.
Creating steps of VPC: It’s wise to follow four-step to create VPC. Those steps are -
Subnetwork or Subnet: is a logical subdivision of an IP network. The practice of dividing a network into two or more networks is called subnetting.AWS provides two types of subnetting one is Public which allows the internet to access the machine and another is private which is hidden from the internet.
Public Subnet: If a subnet’s traffic is routed to an internet gateway, the subnet is known as a public subnet. If you want your instance in a subnet to communicate with the internet over an IPv4 address or an elastic IP address.
→ When you created a VPC, you must specify on IPV4 CIDR Block for the VPC. The allowed block is between /16 to /28 network.
→ The first four and last IP address of the subnet can't be assigned.
In the next part, I am going to discuss the rest of the VPC component.