I have an RDS database running (postgres) that I'm now trying to connect to an Elastic Beanstalk application. The connection times out.
I am guessing this has something to do with the VPC and security groups, but AWS continues to confuse me here and I'm kind of new to this. I'm trying follow this guide: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.RDS.html?icmpid=docs_elasticbeanstalk_console
When I try to add the rds_launch_wizard
security group to the EB instance, it tells me that the security group is not found. rds_launch_wizard
is in a VPC, whereas the EB application is not.
I have tried going into the EB configuration, choosing Instance and trying to add a security group:
- By name, this pops up an error saying that "I cannot add groups by name".
- By group ID, this tells me
group sg-xxxxx not found
. - Similarly, I can't add the EB security group to RDS, as this is also not found
How do I get the two talking to each other?