VPC
AMAZON VIRTUAL PRIVATE CLOUD (VPC)
Why use an Amazon VPC:
IP addressing in Amazon VPC:
RFC 1918 range
Example Amazon VPC CIDR block
Amazon VPC components:
IP Address
Purpose
Security Group
NACL
Complete Architecture Diagram:
Features:
Amazon VPC Use Cases:
Pricing for Amazon VPC:
Steps to create functional Amazon VPC:
1. Login into AWS Management Console:
2. Select the region, according to your preferences.
3. Search VPC on service panel:
4. On VPC management console, click create VPC option:
There will two options to create VPC:
Here I am selecting VPC only option.
Then name and enter the CIDR block for the VPC:
Then add the tag and click create VPC:
The VPC is created successfully:
5. Then to create Internet Gateway, on the left side click internet gateway, then click create Internet Gateway option:
Then name the Internet Gateway according to your preferences, click create Internet Gateway:
Then attach the created Internet Gateway to the created VPC, by clicking attach to a VPC option:
Then select the VPC and click attach Internet Gateway:
The Internet Gateway is attached to created VPC:
6. Next we need to create subnet, under left side click subnet. We could able to see subnet page, then click create subnet:
First select the VPC that we created:
Then naming the subnet, and selecting Availability Zone according to your preferences:
Then entering the CIDR Block according to your VPC CIDR Block, click next:
The subnet had been created successfully.
7. Creating Route Table:
On the VPC Management Console left side we could able to see Route Table click that, Then click Create Route Table:
Name the Route Table & select the VPC, Click create Route Table:
Once the Route Table is created successfully. Under routes click edit routes:
Adding the Internet Gateway in route table for public access:
Assoicating the subnet with the created Route Table, for that under subnet associations, click edit subnet associations:
Select the subnet, click Save associations:
The subnet had been associated with the created Route table successfully:
8. Creating Security Group:
On VPC Management Console left side under security we could able to see Security Groups click that. Then click Create security group:
Then name the security_group & select the VPC:
Then add Inbound & Outbound rules according to your preferences. Click create security group:
The security_group has been created successfully:
9. Creating NACL (Optional):
On VPC Management Console left side under security we could able to see NACL click that. Then click NACL:
Name the NACL & select the VPC. Click create NACL:
NACL is created successfully:
Editing the inbound & outbound rules for allow purpose, for that under inbound rules click inbound rules, then add rule and click save changes:
Associating the subnet with NACL, for that under subnet assciotions, click edit subnet associations:
Then select the subnet & click save changes:
Subnet has been associated to the NACL successfully:
Last updated