aws / aws/aws-cdk-cli

(hotswap): CLI --hotswap -> We don't support attributes of the 'AWS::CloudFormation::Stack' resource

Open
#874 11 comments 1 reaction 0 assignees View on GitHub
effort/large feature-request p2
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`:

![image](https://user-images.githubusercontent.com/5758900/210265241-72d16274-45b4-4edb-9ab3-d9418ce50cd5.png)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.