(@aws-cdk/aws-lambda-event-sources) DynamoEventSource fails to associated with lambda
See original GitHub issueUnable to associate lambda with DynamoEventSource.
The dynamodb table has been created by a different stack with stream of “new image”. and I am trying to associate it with lambda in a separate stack.
Reproduction Steps
var table = Table.FromTableArn("...");
lambda.AddEventSource(new DynamoEventSource(table, new DynamoEventSourceProps {
Enabled = true,
StartingPosition = StartingPosition.LATEST
}));
What did you expect to happen?
it should associate the lambda.
What actually happened?
I am getting the following exception: " Amazon.JSII.Runtime.JsiiException: DynamoDB Streams must be enabled on the table AnalyticsPusher/DepositsDynamoDBTable"
Environment
- **CDK CLI Version : 1.78.0
- **Framework Version:1.78.0
- **Node.js Version: 14.4
- **OS: mac mojave 10.14.3
- **Language (Version): CSharp but it also happens in other languages as well, js/ts
Other
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
aws-cdk/aws-lambda-event-sources module
When a user calls the SNS Publish API on a topic that your Lambda function is subscribed to, Amazon SNS will call Lambda...
Read more >Aws-cdk addEventsource failing - Stack Overflow
Where configTable in the stack is holding the dynamodb table generated already ( in another stack ). Everything runs fine till the fn....
Read more >How to Trigger an AWS Lambda from DynamoDB
In this post we are going to use the AWS CDK to build an AWS Lambda Function that triggers from DynamoDB Stream Events....
Read more >@aws-cdk/aws-lambda-event-sources - Package Manager
When a user calls the SNS Publish API on a topic that your Lambda function is subscribed to, Amazon SNS will call Lambda...
Read more >aws-cdk/aws-lambda-event-sources/README.md - UNPKG
The CDN for @aws-cdk/aws-lambda-event-sources. ... 127, Lambda function, then Amazon SNS will send a delivery status failure message to. 128, CloudWatch.
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
yes, but to find the stream arn i had use the aws sdk which i was not anticipating.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.