简体   繁体   中英

RDS Aurora AppSync Error : 400 Bad Request

I am fairly new to aws.

I am trying to create a simple app using Aurora and AppSync. So far, I have been able to create aurora database, connected to it using MySQL workbench, created the tables that I need.

I have also made the AppSync APIs. And done the resolver (connected the resolver to the RDS Aurora DB).

Here is the problem I am facing, when I try to run queries from the AppSync Queries Tab, it gives me the following error and message:

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

I have made my Aurora accessible to the public, and I have tried to add a few incoming rules to the security group (ie allow all).

However, this error still persists. I have spent a few days on it and will appreciate any help I can get to resolve this.

Thanks in advance

AWS AppSync can connect to Aurora Serverless clusters. First, make sure that your Aurora cluster has an engine-mode of serverless . You can verify this via the CLI by using aws rds describe-db-clusters .

Once you've got a cluster that is serverless, enable the Data API for that cluster, which will allow queries via HTTP.

Keep in mind that as of now these features are in beta and not recommended for production usage.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM