Skip to content

Hotswap: Evaluate cloudformation template doesn't look at multi-nested stacks #28077

@Amplifiyer

Description

@Amplifiyer

Describe the bug

This line here doesn't actually finds the nested stack in the tree but only at the top level which causes references made to second (or more) level nested stacks return undefined. This causes hotswap to fail

Expected Behavior

Correctly evaluate the cloudformation template for hotswap when the attribute references is in second level nested stack

Current Behavior

This line here doesn't actually finds the nested stack in the tree but only at the top level

Reproduction Steps

Have a two tiered nested stack where any resource relies on an attribute (such as output) of second level nested stack. Perform hotswap.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.110.0

Framework Version

No response

Node.js Version

18.17.0

OS

Macos

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cloudformationRelated to AWS CloudFormationbugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.p0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions