Connect to MySQL EC2 Instance outside of VPC
- by Brian W
I have a VPC setup with a few EC2 instances inside. I'm attempting to connect to a MySQL database on an EC2 instance outside the VPC, with no luck.
I have the security groups on the VPC EC2 instances set to outbound 0.0.0.0/0 which I assumed would let it connect to any outbound connection. I also followed a tutorial on creating a NAT, but wasn't exactly sure how to use it to connect to an external database.
In any case, if anyone has experience and knows the proper way to connect to a database outside the VPC, it would be greatly appreciated!