Create an VPC

 How to create an VPC in AWS?

VPC (Virtual Private Network): Is used to launch AWS resources virtually. VPC provides isolation between different networks and services. This isolation ensures that your resources are separated from other users' resources in AWS. You can implement security controls to restrict access and manage the flow of traffic. A subnet is a range of IP addresses in your VPC. You launch AWS resources, such as Amazon EC2 instances, into your subnets. You can connect a subnet to the internet, other VPCs, and your own data centers, and route traffic to and from your subnets using route tables.

Steps to create an VPC:

Step 1: AWS Login.
  • Login into your AWS console with your credentials.
Step 2: Create VPC.
  • Open the AWS Console Management and search for VPC in all services. Click on the VPC option.
  • There you will find the VPC dashboard click on it there you can see what are the resources running in VPC.
  • Click on create an VPC and choose VPC only. Name it as you wish(example: myvpc).
  • Provide the IPvC (10.0.0.0/16) as shown below figure. It is used for identify or create number of IP addresses.
  • Click on create vpc.

Fig.1: VPC creation.

Step 3: Create Subnet.


A subnet is a range of IP addresses in your VPC. You launch AWS resources, such as Amazon EC2 instances, into your subnets. You can connect a subnet to the internet, other VPCs, and your own data centers, and route traffic to and from your subnets using route tables.

  • In the left side click on Subnet. Name it as subnet1. And select the previously created VPC. 
  • Click on the availability zone based on your preference like 1a,1b,1c,etc. There will be more than one availability zone in every region.
  • In IPv4 subnet CIDR block enter 10.0.1.0/24 to create a 256 IP addresses.

  • Click on create subnet.
Fig.2: Subnet creation.


Step 4: Create Internet gate way.

  • Click on internet gateway and create an Internet gateway. 
  • After creating Internet gateway attach the created VPC to it.
  • Make sure the VPC is attached to the gateway.
Fig.3 Internet gateway creation.

Fig.4: Attaching the VPC.


Step 5: Create Rout table.

  • Click route table and create an route table with any name. 
  • After creating Route table click on actions and click on edit subnet association.
  • In the interface select the subnet created.
  • Again in the actions section select the edit route and add the internet gateway we have created in above step.
  • That's it we have done with the VPC creation.
Fig.5: Create route table.

Fig.6: Subnet Association to the route table.

Fig.7: Internet gateway edit.

Thank you 😊























Comments

Popular posts from this blog

LEO Review

The Future of Portable Productivity: Integrating Laser Projection Keyboards with Mobile Phones

EC2 with windows