amazon-rdsaws-appsyncaws-aurora-serverless

Can Aurora Serverless v2 be used with AppSync RDS Resolvers?


We're upgrading our serverless version 1 MYSQL 5.7 database to Serverless v2 MySQL 8.0 (Aurora 3) as documented here and here. Our current AppSync graphql API uses the RDS resolvers to access the database and call stored procedures through the Data API and it works wonderfully. In our test upgrade we've found that the Aurora 3 Serverless 2 version of the database (although available to standard connection via MySQL WorkBench) has deprecated the Data API.

So any AppSync resolvers that follow the recommended RDS AppSync pattern in the Aurora Resolver tutorial or the RDS template mapping reference won't work and give the following error in CloudWatch:

            "error": {
                "message": "RDSHttp:{\"message\":\"httpendpoint not enabled."}",
                "type": "400 Bad Request"
            },

Using aws rds modify-db-cluster --db-cluster-identifier <clusterid> --enable-http-endpoint has no effect.

The release notice for Aurora Serverless v2 gives RDS proxy as one of the benefits but I can't see a way to integrate that into AppSync without writing a lot of additional lambda. Can anyone tell us how to use v2 with AppSync RDS resolvers?


Solution

  • EDIT 2023-12-21: It would seem our wait is coming to an end!

    https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html#data-api.enabling.modifying.all


    Please review: Does Aurora Serverless V2 have a Data API?

    Basically, no, there are no set plans (but a lot of feature requests) for the Data-API. I can only recommend you to help us flood AWS with feature requests for Data-API in Aurora Serverless v2!

    Use your AWS Support channel, your AWS account rep. and AWS re:Post forums!