RDS Aurora AppSync Error : 400 Bad Request

RDS Aurora AppSync Error : 400 Bad Request

我对 aws 还很陌生。

我正在尝试使用 Aurora 和 AppSync 创建一个简单的应用程序。到目前为止,我已经能够创建 aurora 数据库,使用 MySQL workbench 连接到它,创建了我需要的表。

我也制作了 AppSync API。并完成解析器(将解析器连接到 RDS Aurora 数据库)。

这是我面临的问题,当我尝试从 AppSync 查询选项卡 运行 进行查询时,出现以下错误和消息:

"errorType": "400 Bad Request",
"message": "RDSHttp:{\"message\":\"HttpEndPoint is not enabled for 
arn:aws:rds:us***:cluster:***\"}" (I replaced some details with ***)

我已经让 public 可以访问我的 Aurora,并且我尝试向安全组添加一些传入规则(即允许所有规则)。

但是,这个错误仍然存​​在。我已经花了几天时间解决这个问题,如果能得到任何帮助来解决这个问题,我将不胜感激。

提前致谢

AWS AppSync 可以连接到 Aurora Serverless 个集群。首先,确保您的 Aurora 集群的 engine-modeserverless。您可以使用 aws rds describe-db-clusters.

通过 CLI 验证这一点

一旦您拥有一个无服务器集群,enable the Data API 该集群将允许通过 HTTP 进行查询。

请记住,这些功能目前处于测试阶段,不建议在生产环境中使用。