I have a RDS instance (mysql) inside a VPC called vpc-a ( This instance is private, it can only be accessed from vpc-a.

We created a stack on opsworks inside another VPC called vpc-b ( We want to connect opsworks to the RDS but it doesn't work. It refuses to connect. I tried adding said subnet to the RDS security group. Also read a lot of documentation but I haven't stumbled across the answer. Any help would be greatly appreciated.


VPCs are isolated from each other, even within the same AWS account, and cannot, by default, exchange traffic. Nothing you do in security groups changes this; however, within the same AWS region, VPCs can be peered, and it sounds like this is what you will need.

A VPC peering connection is a networking connection between two VPCs that enables you to route traffic between them using private IP addresses.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.