Virtual Private Cloud (VPC) in simplest way
Some key points to always keep remember.
VPC is a virtual network & data center inside AWS for one client.
it is logically isolated from another virtual network in the AWS cloud.
Max 5 vpc can be created per region and 200 subnets per vpc.
We can allocate max 5 elastic IPs.
Once we created vpc. then DHCP, NACL and Security Group will be automatically created.
A PVC is region specific and subnets are availability zone specific.
let's suppose our vpc cidr is 10.0.0.0/16 in the Mumbai region so now any other user of aws can also take this cidr in the same region just because of its isolated property.
NOTE: When we do peering connection with other vpc that time cidr must be different from each other.
A public subnet can go on the internet but private subnet cannot go.
So now the question is then, How a private subnet will go on the internet? for that, we configured NAT on the public subnet and used it for the private subnet.
Once the VPC is created, you cannot change its CIDR block range.
If you need a different cidr size then create a new VPC.
Important: The subnets must be different from each other within vpc.
it's all about the basic of vpc. I will upload about vpc later.