VPC in AWS
Virtual Private Cloud:
Amazon VPC lets you provision a logically isolated section of the Amazon Web Services (AWS) cloud where you can launch AWS resources in a virtual network that you define. You have complete control over your virtual networking environment, including a selection of your own IP address ranges, creation of subnets, and configuration of route tables and network gateways. You can also create a hardware Virtual Private Network (VPN) connection between your corporate datacenter and your VPC and leverage the AWS cloud as an extension of your corporate datacenter.
Components of Amazon VPC
Amazon VPC comprises a variety of objects that will be familiar to customers with existing networks:
- A Virtual Private Cloud: A logically isolated virtual network in the AWS cloud. You define a VPC’s IP address space from the ranges you select.
- Subnet: A segment of a VPC’s IP address range where you can place groups of isolated resources.
- Internet Gateway: The Amazon VPC side of a connection to the public Internet.
- NAT Gateway: A highly available, managed Network Address Translation (NAT) service for your resources in a private subnet to access the Internet.
- Route Table: A route table contains a set of rules, called routes, that are used to determine where network traffic from your subnet or gateway is directed.
- DNS Hostname: The Amazon DNS server resolves a public DNS hostname to the public IPv4 address of the instance outside the network of the instance.
- CIDR: Classless Inter-Domain Routing.
Architecture / Block Diagram
Procedure:
Create and Verify your VPC
Step 01. Create a VPC
Step 02. Create 2 Public Subnet & Create 2 Private Subnet
Step 03. Create IGW (Internet Gateway) & Attach to the VPC
Step 04. Create Public and Private Route Table
Step 05. Add IGW in Public Route table (0.0.0.0/0)
Step 06. Add Public Subnet (1a & 1b) in Route table
Step 07. Create a NAT Gateway in Public Subnet
Step 08. Add NAT GW into the Private Route Table
Step 09. Add Private Subnet in Private Route Table
Step 10. Launch EC2 in this VPC & Validate your Connection
Optional Steps:
Step 11. Edit DNS Resolution and Hostname
Step 12. Cleanup the VPC Resources
Implementation:
Step 01. Create a VPC
- Login to your AWS Console.
- Create your VPC with Valid CIDR and name.
Create 2 Public Subnet & Create 2 Private Subnet
- Click Subnet and create your Subnet with:
- Public Subnet 1 and Public Subnet 2 valid Name & VPC.
- Valid Subnet range which is valid IPv4 CIDR Block.
- Repeat steps 2 & 3, with Private Subnet too.
Create IGW (Internet Gateway) & Attach to the VPC
Create Public and Private Route Table:
Add IGW in Public Route table (0.0.0.0/0)
- Click on the Public route table and click on the edit button.
- Click on Add route from 0.0.0.0/0
- Select Internet gateway from Target drop-down menu.
- Click on save the routes.
Launch EC2 in this VPC & Validate your Connection
- Download the putty & puttygen software to your windows server.
- Change your pem file to ppk extension.
- Connect from you putty
Comments
Post a Comment