Welcome!! In this article, we shall learn about AWS VPC (Virtual Network), subnets, VPC peering, NACL, security groups, site to site VPN, and direct connect.

VPC

VPC is like an on-premises network environment, where we use switches and routers to communicate with servers and clients, the same as AWS Virtual Private Cloud. It is also used for communicating with AWS resources such as EC2, RDS, etc.

Subnet

Under the VPC, we must understand the Subnet and how it works.
Subnetting is the process of dividing a network into small networks
For Example,
There are two classrooms in a school, both class rooms are restricted by Network Access Control List. Consider a classroom as a subnet. Class A leader wants to get a duster from Class B, but the class was closed, he can go by opening the door. Here the Door is a Network Access Control List, it will act as a firewall for subnets only.

What should we do to communicate between two different VPC’s inside AWS?

VPC Peering
Let me explain based on a scenario.
There are two schools, School A (VPC A) and School B (VPC B)
School A students want to participate in a sports event conducted by School B, the school A must get permission and register in government CEO Office to join in this event. After getting the permission they can join the event.
As in our AWS, to communicate between two different VPC’s A and B, we must configure VPC Peering.
With the help of VPC Peering, our AWS resources can communicate with the private IP address,

How to communicate AWS resources with On-Premises

Site to site VPN
Direct Connect
For Azure users you can easily compare these services by referring to this article.
I hope you understood the above topics.
If you like this please like, comment and share.
Thanks for reading this article, and have a nice day.
Cheers,
Gokulakrishna