(aws-appsync): rdsDataSource expects databaseCluster instead of serverlessCluster
See original GitHub issueCreating 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
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
class RdsDataSource (construct) · AWS CDK
The secret containing the credentials for the database. serverlessCluster . Type: IServerlessCluster. The serverless cluster to call to interact with this data ...
Read more >AppSync (CF): Does DbClusterIdentifier expect an ARN or a ...
Doc states: "The database cluster identifier of the rdshttpendpoint." But it seems not to be working, and instead, it should be the cluster's...
Read more >@aws-cdk/aws-appsync-alpha - npm
Start using @aws-cdk/aws-appsync-alpha in your project by running `npm i ... Vpc(this, 'AuroraVpc'); // Create the serverless cluster, ...
Read more >Deploy a GraphQL API with Prisma, AWS AppSync, Aurora ...
This following is an Aurora Serverless PostgreSQL database cluster with Postgres 10. Here, we pass the database name as BlogDB , and we...
Read more >How to import an existing Aurora Serverless cluster in a AWS ...
Can you use the static fromServerlessClusterAttributes method? import * as cdk from '@aws-cdk/core'; import * as rds from '@aws-cdk/aws-rds' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @MrArnoldPalmer
I appreciate you taking the time to get back to me on this. I will hit you up in the pr (and maybe #12575 as well? 😉 )
Have a nice weekend.
Shamelessly going to mention a few people being the last ones active on this repo: @skinny85 @njlynch @rix0rrr
Could someone please shed some light on what to expect about appsync within this project?
I’m aware that the cdk contructs of appsync are marked as experimental, and as such might not be highly prioritized, but it has now been almost a month since we opened this issue (and #12572) with corresponding pr’s, and we haven’t heard a word from aws.
We are happily using aws-cdk and deemed it the favorable option for coding backend within aws, but we use appsync in a lot of our projects and therefore need to know if it has been left for dead in aws-cdk. Looking at the issues, there have been almost zero activity in 2021 regarding appsync.