Via the AWS Management Console:
- I created an Elastic Beanstalk app configured with RDS.
- When I look at my Amazon RDS PostgreSQL DB instance details, I see Security Groups listed twice, with two different values. Why?
Both values say "( active )" at the end.
Clicking on the first value takes me to Security Groups on the RDS Dashboard, where it says:
Your account does not support the EC2-Classic Platform in this region. DB Security Groups are only needed when the EC2-Classic Platform is supported. Instead, use VPC Security Groups to control access to your DB Instances. Go to the EC2 Console to view and manage your VPC Security Groups. For more information, see AWS Documentation on Supported Platforms and Using RDS in VPC.
Clicking on the second value takes me to Security Groups on the EC2 Dashboard, with the corresponding security group selected. I think this is the one the RDS instance is using, right? But then, why is the other one listed too?
This seems to have been a bug with AWS.
To fix it, I ran the commands below to delete DB VPC security groups, as one somehow got created, perhaps by Elastic Beanstalk.