On Amazon Web Services, I'm connecting an Elastic Beanstalk environment to an RDS database, per the tutorial. Launching the database instance worked fine; I connected it to a security group.
Adding the security group to my environment then fails. If I try to add the group name rds-launch-wizard
, I get an error - use group id. If I try to add the group id sg-10bea66b
, I get the error Security Group does not exist
.
The security group does exist. What's going on?
Your RDS instance is inside a VPC, whereas your Elastic Beanstalk application is in EC2-Classic (outside any VPC).
With some exceptions, only security groups that are in the same VPC can be added to each other.
Resolution: Put your EB application in the same VPC as your RDS instance.