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-cdk/aws-lambda-event-sources) DynamoEventSource fails to associated with lambda

See original GitHub issue

Unable 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"


  • **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


This is 🐛 Bug Report

Issue Analytics

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

github_iconTop GitHub Comments

kazimanzurrashidcommented, Dec 17, 2020

yes, but to find the stream arn i had use the aws sdk which i was not anticipating.

github-actions[bot]commented, Dec 17, 2020


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.

Read more comments on GitHub >

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

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 Post

No results found

github_iconTop Related Hashnode Post

No results found