VPC Peering
- Connect two
VPC
using AWS network - After
VPC Peering
communication between twoVPC
useAWS Network
instead ofPublic Internet
- Two
VPC
can not be peered, if - Have overlapping
CIDR
- Any transitive peering with
on-premise
server - Edge to Edge routing via a gateway
- Transitive peering
- A
Peered Connection
is to be created between twoVPC
Peered Connection
can be established with anVPC
in anotherRegion
and anotherAccount
(inter-region
,cross-account
)- Can use
Peered VPC SG
reference - Connection is not
Transitive
VPC A
is peered toVPC B
VPC B
is peered toVPC C
- Does not imply
VPC A
is peered withVPC C
- Still we need to peer
VPC A
withVPC C
explicitly - Each
Subnet Route Table
of each peeredVPC
should be updated. - Target of the
Peered VPC CIDR
should be thePeered Connection
- To establish
VPC Peering
- Create
VPC Peer Connection
with ownVPC
and anotherVPC
- Accept the
Peer Connection
request - Update
Subnet Route Table
for bothVPC
NAT Gateway
can not be shared overVPC Peering