aws-appsync-community
aws-appsync-community copied to clipboard
Question: How to add custom resolvers when using Aurora Serverless MySQL?
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.
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