VPC (Virtual Private Cloud)

VPC stands for Virtual Private Cloud. It allows you to customize your networking configuration. VPC is a network that is logically isolated from other networks in the cloud. It allows you to have your private IP Address range, internet gateways, subnets,and security groups. 

1.Amazon VPC is a network infrastructure architecture within the AWS cloud.Which closely resemles a traditional network

2.It isolates your network infrastructure under your account from other account in AWS

3.You can have 200 Subnets per VPC.

VPC Component:

  1. Subnet (Private Subnet and Public Subnet)
  2. IP (Internet Protocol-Range 1-255)
    1. Class A:1-126 (LAN & WAN)
    2. Class B:128-191 (LAN & WAN)
    3. Class C:192-223 (LAN & WAN)
    4. Class D:224-239 (Multicast)
    5. Class E:240-255 (R&D)

VPC Products:

  • EC2
  • RDS
  • Autoscaling
  • ELB
  • EB
  • EC

Step to Create VPC

    1. Create new VPC "RDSVPC" with CIDR block is "10.10.0.0/16"
    2. Create new Internate Gateway "RDSIGW" 
    3. Attach RDSIGW to RDSVPC 
    4. Create public subnet "rds-pub-subnet"  with CIDR block is "10.10.0.0/24"
    5. Create route table "rds-rt-public" under "RDSVPC"
    6. Add route IGW "RDSIGW" to route table "rds-rt-public"
    7. Go to subnet association and select public subnet "rds-pub-subnet"
    8. Create private subnet "rds-pri-master-subnet" with CIDR block is "10.10.1.0/24"
    9. Create private subnet "rds-pri-replica-subnet" with CIDR block is "10.10.2.0/24"
    10. Create route table "rds-rt-private" under "RDSVPC"
    11. Go to subnet association and select private subnet's "rds-pri-master-subnet" & "rds-pri-replica-subnet"
    12. Create Subnet group rdsvpc-db-subnet-group under rdsvpc
        add : rds-pri-master-subnet" with CIDR block is "10.10.1.0/24
    Add: rds-pri-replica-subnet" with CIDR block is "10.10.2.0/24