Intra-RDS数据库通信设置在常见VPC和安全组上
我有一个生产数据库以及一个我站在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论