I have two VPC's A (10.0.0.0/16) and B (172.31.0.0/16). A comprises of instances over eu-central-1a
and B comprises of instances over eu-central-1b
.
Now to enable communications between the two networks, I added a VPC peering between VPC-A
and VPC-B
.
Next, I set up the routes in VPC-B
as:
Destination: 10.0.0.0/16
Target: <vpc_peering_id>
And in VPC-A
as:
Destination: 172.31.0.0/16
Target: <vpc_peering_id>
Security group setting for the target RDS Instance in VPC-B
Inbound All Traffic All ports CIDR: 10.0.0.0/16
Security group settings for source instances in VPC-A
:
Outbound: All Traffic All Ports CIDR: 0.0.0.0/0
But then again, I still cannot make any connections from VPC-A
to VPC-B
.
I've also checked the security group settings for all instances belonging to VPC-A
: All outbound traffic is allowed.
And in VPC-B
: All incoming traffic from 10.0.0.0/16
is allowed on port 3306
.
What's going on here?
3306
and can be reached at that port from another instance within the same VPC.