(aws-appsync): RdsDataSource misses option to set dataBaseName and expects incorrect cluster #12503
Labels
@aws-cdk/aws-appsync
Related to AWS AppSync
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
It seems like there's no way to add the databasename to a RdsDataSource, which results in a "No database selected" error when running a resolver.
Besides that, RdsDataSource expects a DatabaseCluster and not a ServerlessCluster.
https://docs.aws.amazon.com/cdk/api/latest/docs/aws-appsync-readme.html#aurora-serverless seems outdated as well, and should probably be updated when a solution for the above-mentioned problems have been found. I will open a seperate issue for the doc issue, if/when this becomes relevant.
Reproduction Steps
What did you expect to happen?
addRdsDataSource to include a prop for databaseName and to expect IServerlessCluster.
What actually happened?
There's no prop for databaseName and it expects IDatabaseCluster.
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: