VPC Peering :)
Hello World, This is my first Blog and it’s about how I have learnt the concept of VPC Peering in AWS and the challenges I faced in last two days and how we can overcome them.
Let us first understand what is VPC and VPC Peering.
In simple words if we understand VPC (Virtual Private Cloud) allows you to create a virtual network in the cloud , providing you with complete control over your virtual networking environment.
Subnets: They are the logical sub division that allows you to partition your network and isolate resources.
Route Tables: It plays a crucial role in directing network traffic within VPC.
Internet Gateway: It serves as the entry and exit points for the network traffic between your VPC and Internet.
Uses: Using VPC we can host a public facing websites , a single tier basic web application or just plain old website.
As we now have a basic understanding of VPC and its related terms and uses.
Now lets get into VPC peering and how it is useful to us.
VPC Peering is a private networking connection between two Virtual Private Clouds (VPCs) hosted on the same cloud provider. It enables resources in these VPCs to communicate directly using private IP addresses, without having to go through the public internet. This setup ensures a safe, low-latency connection for transferring data between the VPCs.
For example, imagine a company running its applications in one VPC while storing data in another. VPC peering makes it possible for the application VPC to access the database VPC easily, without exposing sensitive traffic to the internet.
Why we use VPC Peering:
Better Security.
Faster Connection.
Cost Saving.
More Flexibility.
Now let talk what challenges I faced during VPC Peering connection in two different availability zone.
First challenge which I faced was IP address Overlapping , we have to make sure that the IP addresses should be in scoped IP range for the VPC . so, we should plan our IP address ranges carefully before creating the VPC.
Second challenged which I faced was Misconfigured security groups, this is the most common mistake we do while creating the VPC . we should be very careful and configure the Security group in the related VPC for proper connection.
Last challenged faced was Routing Table configuration, Incorrect updates to routing tables can cause connectivity issues. Each VPC’s routes need to be updated correctly to facilitate smooth communication.
These were three most common mistake we don while creating VPC Peering connection and Yes I also faced the same :(
Hope this blog finds you useful in understand the concept and key features and mistake and how to avoid them.
Let me know your input and doubt if any.
Thanks :)