为什么我无法从我的 PC 连接到新的 AWS Aurora Serverless 实例?

Why can't I connect to a new AWS Aurora Serverless instance from my PC?

正在尝试设置普通 AWS RDS Aurora 无服务器实例。

目前,我只想直接从我的 PC 连接到它作为完整性检查,但我无法这样做。每次我通过 $ mysql 连接时,它都会等待几分钟。然后我得到:

$ mysql -h <MY-DATABASE>.cluster-deadbeef.us-west-1.rds.amazonaws.com -P 3306 -u admin -p
ERROR 2003 (HY000): Can't connect to MySQL server on '<MY-DATABASE>.cluster-deadbeef.us-west-1.rds.amazonaws.com' (60)

(nc 也只是超时)

看起来我在某处建立了网络连接,但我不确定在哪里。

这是整个设置(我认为我已经包含了所有相关内容?):

我错过了什么?

谢谢!!

For now, I just want to connect to it directly from my PC

您无法从本地系统访问无服务器数据库,它只能通过 AWS 网络.

访问

您可以通过您的 EC2 实例配置 ssh-tunnel 以访问无服务器数据库或在同一 VPC 中使用 运行 的 VPN。

Because Aurora Serverless DB clusters do not have publically accessible endpoints, your MyClusterName can only be accessed from within the same VPC.

configure-connect-serverless-mysql-database-aurora