Can't find the DB security group in Amazon RDS console - amazon-web-services

Not sure if Amazon recently removed DB security group.
Created a DB instance as shown below. But there is no DB security group tab on the left!
Back to the dashboard, it says I have 2 DB security groups. However I was redirected to the EC2 security groups when clicked it.
How can I create and configure the DB security groups now?
Thanks!

After creating VPC the DB security group shows up in the RDS console. Indeed there are some changes Amazon made about the DB security group since Jan 2013.
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.html#Overview.RDSSecurityGroups.APIMigration

Related

How to connect my Amazon Workspace with AWS RDS?

I have an Amazon Workspace running inside the Private Subnet. In the same subnets i have launched my RDS. I have give access to the Workspace security group to access the RDS inside RDS security group.
Even after all this configuration, i'm getting timedout error whenver i'm trying to connect to RDS from the workspace.
You must allow outbound access for the specific port on the security group attached to the WorkSpace and inbound access from the WorkSpace on the RDS security group (you can reference the security group IDs instead of ip-addresses).
Take also a look on the AWS Reachability Analyzer to check if everything should work. (use the network interface of your WorkSpace)
https://docs.aws.amazon.com/vpc/latest/reachability/getting-started.html

How to fix "DB Security Groups can no longer be associated with this DB Instance" error

This might be a duplicate of this post, but I wanted a separate question for my specific situation. Because none of the found answers on Stackoverflow have helped me so far.
I created an Elastic Beanstalk instance a while ago, complete with RDS instance, by following along with the Setup Wizard. But when I now try to upload new code to it I get the following error:
Environment update is starting.
Environment health has transitioned from Ok to Info. Application
update in progress (running for 2 seconds).
Service:AmazonCloudFormation, Message:Stack named
'awseb-e-gmz62hycax-stack' aborted operation. Current state:
'UPDATE_ROLLBACK_IN_PROGRESS' Reason: null
Updating RDS database named: xxxxxxxxxxxxxx failed Reason: DB Security
Groups can no longer be associated with this DB Instance. Use VPC
Security Groups instead.
In the Configuration section of the Elastic Beanstalk, under Security or Database I can't find any setting for DB Security Groups.
If I go to the RDS instance that this Elastic Beanstalk is using, under the Security group rules I see two Security Group - Inbound rules.
One with a name like:
awseb-e-abcde12345-stack-AWSEBSecurityGroup-123456ABCDE (sg-1234abcd)
And the other with a name like:
rds-awseb-e-abcde12345-stack-awsebrdsdbsecuritygroup-1234567abcdef-abcd (sg-4321dcba)
And the rest is all: CIDR/IP - Inbound.
Am I to remove/replace these Security Group - Inbound rules with VPC rules? Do I need to completely build a new Elastic Beanstalk, with other rules? And especially how to do this.
Also, all the security groups associated with this elastic beanstalk and RDS appear in the Security Groups section of the VPC Dashboard: https://eu-west-1.console.aws.amazon.com/vpc/home?region=eu-west-1#securityGroups:.
I am at a loss here. It feels like this should be very straightforward, since I created this with the Setup Wizard from AWS, but I can't figure it out. Anyone with some idea, please comment or answer, thanks!
The error clearly says, DB Security Groups can no longer be associated with this DB Instance.
Earlier in RDS, they were using a separate security group called DB Security group. Now everything moved to VPC security group. If you are using older AWS account, still you can see the DB security groups, but its not working now. So use VPC security group instead.
Best practice:
Launching RDS via Elastic Beanstalk or Cloudformation is not a good practice (particularly for production), because when you delete the CF template it'll remove all of your resources including the DB. And Beanstalk also will do the same on the new deployment.

AWS Rds security group settings consideration

We've setup a RDS for MS SQL database. I'd like to limit database connection only from our own applications such as Website, API, others. Normally we setup the security group like:
The problem is it allows anybody to access. I'd like to only allow some IPs to connect. But I can't do that for my API app which it's running through a Load balancer because there is no fixed ip address.
Any suggestions?
Don't use IP restrictions. When configuring Security Group rules, in the Source field you can also enter Security Group ID of the Instance that you want to allow to access your RDS.
Example from Adding Rules to a Security Group:

Organizing Security Groups in AWS

I'm having an issue with Security Groups in AWS. I have 4 security groups, 2 in EC2 and 2 in RDS.
ec2-prod
ec2-test
rds-prod
rds-test
On the other hand, I have a database DEV, having the rds-test security group associated.
In the rds-test inbound rules I've added ec2-prod and ec2-test, and my IP is added into the ec2-test, but for some reason it's not working.
If I add my IP directly on rds-test I can connect to the database, but this behavior make no sense to me.
Just in case, in the ec2-test security group, my IP has permission ALL TCP.
Any ideas?
It's the normal behavior. You have to add your IP to the DB security group.
The DB security group defines the access the RDS DB.
The EC2 security group defines the access the EC2 instance.
The fact that your IP is authorized to access the instance doesn't mean your IP is authorized to access the DB (but you can connect to the DB from the instance).

How do I setup Security Groups for Amazon RDS (non VPC)?

I've successfully launched an Amazon RDS instance (non VPC!) in the Ireland region. Now I need to set the Security Group settings, but these are not present in my console when selecting Ireland. When selecting Virginia the "Security Groups" item shows up in the left menu, but not when selecting Ireland. After digging through Google for hours it seems I need to setup the Security Groups through Amazon EC2. This seems weird to me because I don't need EC2, my app will not be hosted at Amazon (for now). Anyways, creating the Security Groups in EC2 doesn't change anything in my Amazon RDS console, I still can't find the Security Groups settings item in the left nav and thus cannot set CIDR/IP to 0.0.0.0/0.