I have a CodeIgniter PHP app setup on an Elastic Beanstalk instance. I'm trying to connect it to an RDS MySQL instance I set up but loading the Elastic Beanstalk site URL always results in the page timing out the connection. I've narrowed down the issue to not being able to connect to the database.
I think I've set up my security groups properly to allow the Elastic Beanstalk EC2 instances to talk to RDS, but something must be wrong as the page still doesn't load.
I've included screenshots below of the inbound/outbound rules for the security group that RDS and Elastic Beanstalk use, as well as a screenshot of what security groups I have attached to the Elastic Beanstalk instance.
Any ideas as to why my Elastic Beanstalk app can't talk to my RDS instance?