Skip to content

--hotswap does not see CfnOutput change #19998

@ppena-LiveData

Description

@ppena-LiveData

Describe the bug

cdk deploy --hotswap should notice if any non-Lambda changes need to be deployed, but it fails to see when there has been a CfnOutput change, e.g. a different output name.

Expected Behavior

cdk deploy --hotswap would see that a CfnOutput changed and deploy the changes instead of hotswapping.

Current Behavior

If a CfnOutput's name changes, cdk deploy --hotswap thinks it only needs to hostswap, so the CfnOutput's name does not change.

Reproduction Steps

  1. cdk deploy a stack that includes a CfnOutput
  2. make an edit to the CfnOutput's name
  3. run cdk deploy --hotswap
  4. Expected behavior: CfnOutput's name should change
    Actual behavior: ✨ hotswapping resources: is printed and the CfnOutput's name does not change

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.20.0

Framework Version

No response

Node.js Version

v14.16.0

OS

Windows 10

Language

Python

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.effort/smallSmall work item – less than a day of effortp1package/toolsRelated to AWS CDK Tools or CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions