I've recently started the process of switching from AWS ELB to NLB, and I'm facing some connectivity issues.
We have 2 VPCs. In VPC1, both EC2 database servers, old ELB and NLB is located. In VPC2, we have some EC2 servers that connect to the database servers
In VPC1, we face no connectivity issues.
In VPC2, I can't reach the DB via the NLB.
- I can reach the DB via the old ELB, which is in the same sec group as the EC2 server
- I can reach the DB via direct connection to the DB server (The EC2 DB server allows traffic from VPC2)
- The NLB, ELB and the EC2 DB server are in the same subnet
- The NLB is of the internal type
From what I understand with regards to how NLB works, just the fact that I can connect directly to the EC2 instance means that I should be able to connect to it via NLB - the NLB has no security group of itself and uses the sec group of the EC2 instance, since it forwards the source IP.
Does anyone have any ideas about what could be wrong?