Virtual private cloud is a virtual network that closely resembles a traditional networking that you operate in your own data centre, with the benefits of using the scalable infrastructure of AWS.
Or
- VPC is virtual network or data centre inside AWS for one client.
- It is locally isolated from other virtual network in the AWS cloud.
- Maximum 5 VPC can be created and 200 subnets in 1 one region
- We can allocate maximum 5 elastic IP.
- Once we created VPC, DHCP, NACL and security group will be automatically created.
- A VPC is confined to an AWS region and does not extend between regions.
- Once the VPC is created, you cannot change its CIDR, Block Range.
- If you need different CIDR size create a new VPC.
- The different subnet within a VPC cannot overlap.
- You can now ever expand your VPC CIDR by adding new/extra IP address ranges (Except Google Cloud and AWS China).
Component of VPC:
- CIDR and IP address subnets
- Implied Router and Routing Table
- Internate Gateway
- Security Group
- Network ACL
- Virtual Private Gateway
- Peering Connections
- Elastic IP
VPC types:
- Default VPC
Created in each AWS region when an AWS account is created. Has default CIDR security group,NACL and rout table setting. Has an Internet gateways by default.
- Custom VPC
AWS users creating the custom VPC it can decide the CIDR. Has its own default security group, network ACL and rout table. Does not have an Internet gateway by default, once needs to be created if need.