xyLuz
xyLuz

Reputation: 198

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 (i.e. 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

Upvotes: 2

Views: 1487

Answers (1)

bwest
bwest

Reputation: 9854

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.

Upvotes: 2

Related Questions