You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be a user error, but I am using an existing DynamoDB table with the DynamoDBStreamToLambda class. When I do cdk diff or cdk synth, I receive this error.
jsii.errors.JSIIError: Object of type @aws-cdk/core.Resource is not convertible to @aws-cdk/aws-dynamodb.Table
The object that is being passed to the existing_table_obj is <jsii._reference_map.InterfaceDynamicProxy object at 0x10afdbb50>. from_table_name states that it returns an object of type ITable. Perhaps this is the issue? Is there a way to convert ITable to a Table object?
jabrennem@ While existing_table_obj can be converted to accept ITable instead of Table, the limitation of ITable is it does not support any mutating operation on the existing table. I'll look into this if this pattern does not require such operation, than it can be converted to accept ITable instead of Table
This might be a user error, but I am using an existing DynamoDB table with the DynamoDBStreamToLambda class. When I do cdk diff or cdk synth, I receive this error.
jsii.errors.JSIIError: Object of type @aws-cdk/core.Resource is not convertible to @aws-cdk/aws-dynamodb.Table
The object that is being passed to the
existing_table_obj
is<jsii._reference_map.InterfaceDynamicProxy object at 0x10afdbb50>
.from_table_name
states that it returns an object of typeITable
. Perhaps this is the issue? Is there a way to convertITable
to aTable
object?Reproduction Steps
Error Log
jsii.errors.JSIIError: Object of type @aws-cdk/core.Resource is not convertible to @aws-cdk/aws-dynamodb.Table
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: