Can't connect from connected elastic resource to RDS DB

0

Hello,

I have an EC2 instance. I created an RDS Aurora DB. I connected my EC2 instance and the DB. I can see two security groups, one enabling inbound TCP traffic on port 3306 and one does the same but outbound. They are assigned to the EC2 resp. the DB.

If I ssh onto the EC2 instance and use the mysql command to connect, I get a timeout. So somehow the automatic configuration was wrong but that can't be, can it?

How can I troubleshoot this?

1 Answer
0
Accepted Answer

If it is a timeout error, you need to make sure that the rules for the RDS and EC2 security groups are correct.
Also make sure that the network ACLs configured for the subnet also allow the required communications.

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Troubleshooting.html#CHAP_Troubleshooting.Connecting

By the way, would it be possible for you to share with us what settings are in place for the security group?

profile picture
EXPERT
answered 10 months ago
profile pictureAWS
EXPERT
iBehr
reviewed 10 months ago
profile picture
EXPERT
reviewed 10 months ago
profile picture
EXPERT
reviewed 10 months ago
  • How can I dump the configs so I can post them?

  • oh god, I'm such a donut. I mistyped the port and just never realized it. I used 3006 isntead of 3306 when I tested connectivity.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions