Octet

An app in a peered VPC reaches the replica database but not the primary

TroubleshootingWorking

The ticket

The app VPC (10.10.0.0/16) is peered with the data VPC (10.20.0.0/16) in us-east-1. The peering connection pcx-0c4d5e6f7a8b90123 shows Active. From APP1 (10.10.10.25), connections to the read replica DB2 (10.20.11.40, us-east-1b) work. Connections to the primary DB1 (10.20.10.40, us-east-1a) on port 5432 time out. Both databases use the same security group, which allows 5432 from 10.10.0.0/16.

app VPC 10.10.0.0/16data VPC 10.20.0.0/1610.20.0.0/16 to pcxrt-data-a 0/0 to natAPP110.10.10.25PCXpcx-0c4d5e6f7a8b90123DB110.20.10.40 us-east-1aDB210.20.11.40 us-east-1bNATBdata VPC NAT in 1a

Book 3.4 Routing

Step 1 of 3

The peering is Active. Where do you start?