-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-appsyncRelated to AWS AppSyncRelated to AWS AppSyncbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2
Description
Creating seperate issues for #12503 to improve strucure.
When trying to add a rdsDataSource to appsync, addRdsDataSource and RdsDataSource expects a DatabaseCluster instead of a ServerlessCluster, which is the one used by AppSync.
Reproduction Steps
const api = new GraphqlApi(stack, 'api', {
name: 'graphqlApi',
schema: Schema.fromAsset('./testSchema.graphql'),
});
const serverless = new ServerlessCluster(stack, 'cluster', {
engine: DatabaseClusterEngine.AURORA_MYSQL,
vpc: new Vpc(stack, 'vpc'),
});
api.addRdsDataSource('rdsDS', serverless, serverless.secret!);
What did you expect to happen?
addRdsDataSource to expect ServerlessCluster.
What actually happened?
It expects a DatabaseCluster.
Environment
- CDK CLI Version: 1.84.0
- Framework Version: 1.84.0
- Node.js Version: 14.5.4
- OS: MacOS 10.15.7
- Language (Version): TypeScript (3.9.7)
This is 🐛 Bug Report
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-appsyncRelated to AWS AppSyncRelated to AWS AppSyncbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2