What is an Amazon VPC?
AWS virtual private cloud (VPC) is a virtual network committed to your AWS account. VPC is logically isolated from other virtual networks in the AWS cloud.We can launch our AWS resources, such as Amazon EC2 instances, into your VPC. We can configure our VPC, we can select its IP address range, create subnets, and configure route tables, network gateways, and security settings.
What is Internet Gateway
An AWS Internet Gateway is a service managed by AWS that runs in your VPC. An Internet Gateway allows access to and from the public Internet for resources in your subnet that have a public IP address..
What is NAT Gateways
Resources in our via an Internet Gateway public subnets can access the public Internet.
What is CIDR blocks
Amazon virtual private cloud (VPC) is a virtual network dedicated to only your AWS account. It is logically isolated from different virtual networks within the AWS Cloud. Whenever we create a VPC, we need to specify a valid range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) block for example 10.0. 0.0/16
What is subnet?
A Virtual Private Cloud (VPC) subnet is a range of Internet Protocol (IP) addresses in your VPC. We can launch AWS resources into a subnet that we select during the creation of instances. Use a public subnet for resources that must be connected to the Internet, and a private subnet for resources that will not be connected to the Internet.
How to Create VPC in AWS Cloud:
Here is the steps to create your AWS Virtual Private Cloud (VPC) infrastructure with:
One public subnet, and One private subnet.
Step 1: Go to Services from there search VPC and then create/allocate Elastic IP from the left side panel from VPC Dashboard.
Step 2: Navigate to your VPC console on AWS and click Start VPC wizard:
Step 3: Adding Subnets,
This only creates one private subnet. Once you done with the VPC creation, we will add the two other subnets.
Filling subnet entries as below
Public subnet 1: 10.0.0.0/24 Private subnet 1: 10.0.1.0/24
Step 4: Click on Create.
Note: after creation of your VPC you can launch your instances into the newly created VPC.