Adding dynamodb source to graphQL api doesn't support imported table.
I have a table lets say 'Customer' that is created in another application and i want to add customer table as a data source in graphql api in another application.
Change table: Table argument to table: ITable in addDynamoDbDataSource method and DynamoDbDataSourceProps.
This is a :rocket: Feature Request
I am facing the same issue.
Am trying to import a table from another stack and get
Error: Object of type @aws-cdk/core.Resource is not convertible to @aws-cdk/aws-dynamodb.Table
P.S. Using Python CDK
A similar issue was solved here: https://github.com/aws/aws-cdk/pull/6635
I'm having the same problem, because I want to create my DynamoDB tables in a separate stack (and possibly import orphaned tables after CloudFormation migrations in the future).
Yeah changing from accepting Table to ITable is the right way to go here. Should be relatively simple to implement and non-breaking for users.
Most helpful comment
Yeah changing from accepting
TabletoITableis the right way to go here. Should be relatively simple to implement and non-breaking for users.