更改AWS RDS数据库实例上的安全组 [英] Change security group on AWS RDS Database Instance
问题描述
我已经通过AWS RDS创建了一个Postgresql数据库实例.我现在正尝试从django应用程序连接到它,因此我创建了一个新的安全组并更改了绑定规则.
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.
有什么主意吗?
推荐答案
您的Amazon RDS数据库当前正在使用默认"安全组.因此,您有两种选择:
Your Amazon RDS database is currently using the "default" security group. Therefore, you have two choices:
- 修改默认安全组或
- 创建新的安全组(完成操作),然后转到RDS控制台,单击数据库,然后选择实例操作->修改和修改与数据库实例关联的安全组(添加新的安全组,删除 default 安全组)
- 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)
在EC2服务中设置了安全组,因此要创建新的安全组,请转到 EC2 服务,然后单击左侧的安全组 网络和安全性.
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.
这篇关于更改AWS RDS数据库实例上的安全组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!