Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting to RDS Instance from Elastic Beanstalk

This has been killing me all day.

I've set up Elastic Beanstalk, working fine.

Set up RDS, working fine and can access from my laptop.

But when i try to connect to the RDS from my ES application i get a timeout error.

Extra info is that i'm using a Laravel application, connecting to a MYSQL database. All of my environment variables have been loaded and accepted fine.

I'm almost certain it's a security groups setting, but the docs are so tremendously bad for AWS that i haven't got a clue what to do!

Any help?

like image 413
Ryk Waters Avatar asked Oct 19 '25 10:10

Ryk Waters


1 Answers

Answer was to go to Services > VPC

Under the Security section, click Security groups.

Click the RDS group, then Inbound Rules.

Edit, then add a rule:

Select MYSQL, change the port, then the IP should be custom IP and type in the ID of your Elastic Beanstalk security group / groups (No idea why i have 2)

like image 195
Ryk Waters Avatar answered Oct 22 '25 02:10

Ryk Waters



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!