EC2 Auto Scaling Group的实例连接到 Amazon RDS 数据库

0

我用EC2 auto scaling 的同时会使用RDS,如果保证新添加的EC2能够访问RDS呢?

profile picture
EXPERT
asked a month ago18 views
1 Answer
0

主要看RDS的网络安全组是否允许EC2的流量。可以把Auto Scaling Group里EC2的安全组作为源添加到RDS的入站规则里。
具体可以参阅https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/tutorial-connect-ec2-instance-to-rds-database.html。建议EC2和RDS之间部署RDS proxy,使用proxy进行互联通信。

profile picture
EXPERT
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions