aws-appsync-community icon indicating copy to clipboard operation
aws-appsync-community copied to clipboard

Question: How to add custom resolvers when using Aurora Serverless MySQL?

Open willrust opened this issue 4 years ago • 1 comments

How can we use CustomResources.json to add new resolvers with RDS?

Following what exists in YourAPI-rds.json (The auto generated API stack), it requires a RelationalDatabaseAccessRole Resource, adding that resource to both files isn't going to work, and there doesn't seem to be a away to reference the Resources declared in YourAPI-rds.json from within CustomResources.json.

willrust avatar Aug 27 '19 18:08 willrust

There should be no different than any normal lambda resolver, just use our template.

There is a sample project on github you can refer to: https://github.com/aws-samples/aws-appsync-rds-aurora-sample

katzeforest avatar Sep 11 '19 16:09 katzeforest