Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change security group on AWS RDS Database Instance

I've created a Postgresql database instance via AWS RDS. I am now trying to connect to it from my django app, so I created a new security group and changed the imbound rules.

However how do I make this new rule active? I go onto my database instance and under "Security Groups" it only says:

default (sg-9a15a9f0)
( active )

and doesn't show the new security group I created. In the Security Group UI, I can't find a button to make the new security group active.

Any idea?

like image 613
Zorgan Avatar asked Jun 21 '18 03:06

Zorgan


People also ask

How do I find my RDS security group?

Those security groups are controlled by the "Security Groups" section in the RDS console. From there, you can add EC2-Classic security groups for access: Select your RDS security group. Select "EC2 Security Group" for the "Connection Type"

How do I change the security group of a running instance?

To change an AWS EC2 instance's security group, open the Amazon EC2 Console and Select “Instances.” Click “Change Security Groups” under “Actions” and select the security group to assign an instance. You can remove pre-existing security groups by choosing “Remove” then save.

Does AWS RDS have security group?

Amazon RDS security groups enable you to manage network access to your Amazon RDS instances. With security groups, you specify sets of IP addresses using CIDR notation, and only network traffic originating from these addresses is recognized by your Amazon RDS instance.

How do I change my VPC security Group RDS?

From the navigation pane, choose Databases. Select the DB instance, and then choose Modify. From the Connectivity section, select the Subnet Group associated with the new VPC. Then, choose the appropriate Subnet Group for that VPC.


1 Answers

Your Amazon RDS database is currently using the "default" security group. Therefore, you have two choices:

  • Modify the default security group, or
  • Create a new security group (as your have done), then go to the RDS console, click on your database, then choose Instance actions -> Modify and modify the security groups that are associated with the DB instance (add the new security group, remove the default security group)

Security groups are set up within the EC2 service, so to create a new security group, go to the EC2 service, then click Security Groups on the left, under Network & Security.

like image 78
John Rotenstein Avatar answered Sep 23 '22 02:09

John Rotenstein