Intra-RDS数据库通信设置在常见VPC和安全组上

发布于 2025-01-28 10:33:37 字数 238 浏览 4 评论 0原文

我有一个生产数据库以及一个我站在AWS上的新数据库。两者都是邮政。我想使用复制将表从生产复制到新数据库中。我做了一个nslookup以获取新数据库的公共IP,并将其添加到安全组的传入规则中。获得所有Postgres命令后,我可以很好地复制。

我知道RDS IP地址不是静态的。传入规则将IP地址作为输入,因此可以想象,如果IP地址更改,则规则会违反。将数据库添加到安全组的正确方法是什么,以便规则可以承受IP地址更改?

I have a production database plus a new database that I stood up on AWS. Both are Postgres. I wanted to use replication to copy a table from production into the new database. I did an nslookup to get the public IP of the new database and added it into the incoming rules for the security groups. After getting all the postgres commands in, I can replicate just fine.

I understand that the RDS IP addresses are not static. The incoming rule takes an IP address as an input so it is conceivable that the rule breaks if the IP address changes. What is the correct method for adding a database to the security group so that the rule can withstand an IP address change?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文