[英]Cross-region access to database on AWS
I have created a database(postgres) on AWS in region1. 我已经在region1的AWS上创建了一个数据库(postgres)。 Now I want a developer from region2 to help me on the database located in region1. 现在,我希望来自region2的开发人员可以帮助我解决位于region1中的数据库。
I know AWS as default do not permit cross-region access. 我知道默认情况下,AWS不允许跨区域访问。 But is it possible to give access to the database for the developer in region2? 但是是否可以为region2中的开发人员提供对数据库的访问权限? If yes, how? 如果是,怎么办?
Yes you can. 是的你可以。 Do as below: 执行以下操作:
- On region1: follow link to public you RDS -在region1:点击链接以向您公开RDS
- On region2: add NAT for your VPC to make internet accessing. -在region2上:为您的VPC添加NAT以进行Internet访问。
So I illustrate the flow as: 因此,我将流程说明为:
[region2: your_app
-> NAT
] ---(internet)--> [region1: Internet_gateway
-> bastion_instance (optional)
-> RDS
] [region2: your_app
> NAT
] ---(互联网)-> [region1: Internet_gateway
bastion_instance (optional)
-> bastion_instance (optional)
-> RDS
]
With newly update, you can also use AWS Direct Connect Gateway
to connect 2 VPC cross-region for the same aws account. 通过新更新,您还可以使用AWS Direct Connect Gateway
为同一aws帐户连接2个VPC跨区域。 Ref 参考
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.