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?
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"
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.
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.
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.
Your Amazon RDS database is currently using the "default" security group. Therefore, you have two choices:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With