-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cdk deploy --hotswap: We don't support the 'StreamArn' attribute of the 'AWS::DynamoDB::Table' resource. #25417
Comments
Forgot to include this in the submission, but this is a
|
|
Describe the bug
--hotswap
deploy is not working on a Lambda function that has a DynamoDB table set as an event source. The Dynamo table is created in a parent stack, the Lambda function is created in a NestedStack.Expected Behavior
Hotswap deploy of the modified Lambda function source code, which was the only thing that changed when trying to run the
cdk deploy --hotswap TempProjectStack
command.Current Behavior
Hotswap deploy fails and I get the following error:
A regular deploy does successfully deploy.
Reproduction Steps
TypeScript files to reproduce on a new project
bin/cdk.ts
lib/temp-project-stack.ts
src/index.js
The above files within the drop down have triggered the error for me on a fresh CDK project created using:
cdk init app --language typescript
Possible Solution
To be clear I don't want to actually hotswap the entire Dynamo Table itself here. I would love to be able to hotswap deploy the modified Lambda code and maybe only the StreamArn of the table if that is required for this work. If we can do it without modifying the StreamArn that is fine too. I'm not overly familiar with Dynamo Streams and Lambda, so maybe there is a limitation here that makes this not an option. The end goal is to be able to adopt
--hotswap
deploys in our environment as it would greatly increase developer efficiency and improve iteration speed.Additional Information/Context
No response
CDK CLI Version
2.73.0
Framework Version
No response
Node.js Version
v18.15.0
OS
Ubuntu 20.04 LTS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: