cloudformation: Could not perform a hotswap deployment, because the CloudFormation template could not be resolved.
karmabadger opened this issue · comments
Describe the bug
When running deployment with hotswap, I got:
Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: We don't support the 'StreamArn' attribute of the 'AWS::DynamoDB::Table' resource. This is a CDK limitation. Please report it at https://github.com/aws/aws-cdk/issues/new/choose
Falling back to doing a full deployment
reporting this since it was told to do so.
Expected Behavior
I expected this to perform the hotswap.
Current Behavior
It does not perform the hotswap.
Reproduction Steps
NA
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.145
Framework Version
No response
Node.js Version
18.18.2
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response
@karmabadger Good morning. Could you please share your CDK code for which you want to use hotswap deployment? Please also check if:
- StackOverflow article https://stackoverflow.com/questions/75042121/cdk-watch-command-forces-full-deploy-with-unrelated-error-on-file-change helps (although it doesn't appear to be the same use case, mentioning here just for reference).
- It is similar to #19421.
Thanks,
Ashish
Hi, I can't post the code as I don't have permission to share it here.
I would say it is probably similar to that other issue just that it is not the same type of resource.
Making a note that the same error shows up for stacks containing AWS::ElastiCache::ReplicationGroup
.
this is pretty useful as each deploys are taking me over 600 seconds just because they cannot hotswap here.
Hi, I can't post the code as I don't have permission to share it here.
@karmabadger May be share the bare minimal code sample (not the entire code) to troubleshoot the issue.