(hotswap): CLI --hotswap -> We don't support attributes of the 'AWS::CloudFormation::Stack' resource
- Dominant language
- TypeScript
- Stars
- 105
- Forks
- 122
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 71
Description
### Describe the feature
Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: We don't support attributes of the 'AWS::CloudFormation::Stack' resource. This is a CDK limitation.
### Use Case
I work with Nested stacks and I have Lambda in nested stacks.
When I do a code change to a Lambda, I would really like to have hotswap working. This works for the main stack, but for a Lambda code change located in a Nested stack, this doesn't work.
Output of `cdk diff`:

As you can see, the Lambda code change in a nested stack triggers a change of type `AWS::CloudFormation::Stack` which is not supported.
### Proposed Solution
_No response_
### Other Information
Some other similar issues:
https://github.com/aws/aws-cdk/issues/19421
https://github.com/aws/aws-cdk/issues/19644
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### CDK version used
2.58.1 (build 3d8df57)
### Environment details (OS name and version, etc.)
Ubuntu 20.04 LTS (Windows WSL2)
Contributor guide
Assessment
This issue has not been assessed yet.