Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
981 views
in Technique[技术] by (71.8m points)

amazon web services - Can not remote connect to RDS DB instance of AWS

I have a problem with connect to DB instance of AWS after I config that:

http://www.test.htmlcssworld.com/CDN/rds-dashboard.png

I already add this DB instance to the Security Group with RULE: MySQL - TCP - port:3306 and source is Anywhere.

http://www.test.htmlcssworld.com/CDN/cmd-rds.png

But when I try to remote connect via CLI that show error (10060).

Note: All of them i manipulation at US West (Oregon) and have Security Group Rule.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

A couple of things to check

  • Security group (you did that already, looks good)
  • Subnet is public ? i.e. it has a Routing Table that includes a Rule that says 0.0.0.0/0 DST Internet Gateway
  • Internet Gateway is attached to your VPC

On a side note, I would strongly discourage to make your database publicly available on the internet. In an ideal world, your database must have only a private IP address and must be available only from your app servers. Should you really need to be able to access your database from the Internet, your Security Group should be restricted to a /32 IP address


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...