question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(aws-appsync): rdsDataSource expects databaseCluster instead of serverlessCluster

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Simon-TechFormcommented, Feb 19, 2021

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.

1reaction
Simon-TechFormcommented, Feb 14, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found