更改 AWS RDS 数据库实例上的安全组 [英] Change security group on AWS RDS Database Instance

查看:43
本文介绍了更改 AWS RDS 数据库实例上的安全组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过 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 )

并且不显示我创建的新安全组.在安全组 UI 中,我找不到激活新安全组的按钮.

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 控制台,单击您的数据库,然后选择实例操作 -> 修改修改与数据库实例关联的安全组(添加新安全组,删除默认安全组)
  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆