aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.34k stars 3.76k forks source link

cloudformation: Could not perform a hotswap deployment, because the CloudFormation template could not be resolved. #30577

Open karmabadger opened 1 week ago

karmabadger commented 1 week ago

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

ashishdhingra commented 1 week ago

@karmabadger Good morning. Could you please share your CDK code for which you want to use hotswap deployment? Please also check if:

Thanks, Ashish

karmabadger commented 1 week ago

Hi, I can't post the code as I don't have permission to share it here.

karmabadger commented 1 week ago

I would say it is probably similar to that other issue just that it is not the same type of resource.

potatoboiler commented 1 week ago

Making a note that the same error shows up for stacks containing AWS::ElastiCache::ReplicationGroup.

karmabadger commented 1 week ago

this is pretty useful as each deploys are taking me over 600 seconds just because they cannot hotswap here.

ashishdhingra commented 1 week ago

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.