- Newest
- Most votes
- Most comments
If you make the RDS database publicly accessible, it wouldn't work because its DNS name would resolve to the public IP (and not the private IP routed via the VPC peering connection) from outside its local VPC. Without public access, it should work with the setup you're describing, if the RDS database is in a private subnet and if the outbound rules of the security group of the EC2 instance also permit traffic towards the RDS database.
Does the DNS name of the RDS database resolve to its correct private IP from the EC2 instance in the other VPC?
The VPC reachability analyser Rodney Lester suggested could very well find your problem. Your setup shouldn't involve anything more complex than what you described, so it could be as simple as a typo in IP routes or similar.

Have you tried using the Reachability Analyzer?
Yes, the reachability analyzer says reachable with Availability zone crossed. However, when I try to ping or use telnet command from my ec2 instance (when I'm ssh'ed into int), the RDS instance is not reachable / gives timeout error when querying in the webapp.
Actually, I just reran the application after running the Reachability Analyzer & it's working.