Why Can I Access Staging RDS from Production VPC But Not EC2s?

0
4
Asked By TechWhiz42 On

Hi everyone,

I'm currently working with two VPCs: a production VPC housing several EC2s and RDS databases, along with an OpenVPN server that we use for remote access. We've recently set up a new staging VPC that contains some staging EC2 instances and databases.

When I connect to our production VPC via OpenVPN, I can access all the production EC2s and databases, which is what I'd expect. However, I noticed something odd—I can't access the staging EC2s in the new VPC, as they're in a different VPC, but I CAN access some of the RDS MSSQL instances that are also in the new staging VPC. This seems strange since both the staging EC2s and RDS are in the same security group and VPC. Why am I able to connect to the RDS but not the EC2s? Any insights would be greatly appreciated!

Thanks,
Rob

1 Answer

Answered By CloudExplorer99 On

It sounds like you're facing a routing issue. Are your VPCs peered or do you have a transit gateway set up? By default, inter-VPC routing doesn't work unless you have one of those in place.

Rob -

Thanks for the heads up! I’ll check the peering status and see if we have a transit gateway.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.