Vpc Peering Architecture
If using elb proxy protocol or network load balancers.
Vpc peering architecture. Instances in either vpc can communicate with each other as if they are within the same network. When peering two vpc s you must add the subnets for the remote end s application subnets which by nature should transit cloudshield need to be added to the route tables pointing at the vgw to prevent asymmetric routing. Vpc peering enables the creation of one to one networking connections between two or more vpcs in the same aws region and even between different aws accounts.
A vpc peering connection is a one to one relationship between two vpcs. Vpc peering and transit vpcs transit vpcs are yet another approach that helps in managing lots of independent vpcs and in reducing the attack surface on the services running in those vpcs. You do not have any peering relationship with vpcs that your vpc is not directly peered with.
Hub and spoke and fully meshed. These are the two nexus devices which are interconnected via the vpc peer link one serves the purpose of primary and other acts as secondary. I ll refer to them here as the management non prod and production vpcs.
A vpc peering connection is a networking connection between two vpcs that enables you to route traffic between them using private ipv4 addresses or ipv6 addresses. When peering vpc s you must create a route table to elb s only which does not have the vpc. It is the most important connectivity element between vpc peers this link is used by the two vpc peers to synchronize their control planes so that two switches have illusion of a single control plane.
It is neither a gateway nor a vpn connection and does not rely on a separate piece of physical hardware. You can create multiple vpc peering connections for each vpc that you own but transitive peering relationships are not supported. Three vpcs are connected via vpc peering.
Aws uses the existing infrastructure of a vpc to create a vpc peering connection. The choice of which to use depends on the use case. Vpc network peering merges the control plane and flow propagation between each peer allowing the same forwarding characteristics as if all the vms were in the same vpc network.