Peering and nontransitive routing
VPC peering supports private routing between two VPCs with compatible nonoverlapping address spaces. Both sides need appropriate routes and security configuration. Peering is not transitive: A connected to B and B connected to C does not automatically connect A to C. DNS behavior also needs deliberate configuration. For A=10.20.0.0/16 and B=10.30.0.0/16, each route table needs the remote prefix via the peering connection; a security policy still must allow the intended application flow after the routes exist. Direct-peer reasoning prevents assuming routing is automatic and helps distinguish absent routes or security permissions from unsupported transit behavior in an architecture with several networks connected for different purposes. Using B as an automatic router from A to C through separate peering connections is unsupported transit; add an appropriate direct connection or a deliberate transit architecture rather than broadening security rules.
For A=10.20.0.0/16 and B=10.30.0.0/16, each route table needs the remote prefix via the peering connection; a security policy still must allow the intended application flow after the routes exist.
Direct-peer reasoning prevents assuming routing is automatic and helps distinguish absent routes or security permissions from unsupported transit behavior in an architecture with several networks connected for different purposes.
Using B as an automatic router from A to C through separate peering connections is unsupported transit; add an appropriate direct connection or a deliberate transit architecture rather than broadening security rules.