Skip to content

cdk bootstrap prints "hotswap deployment skipped" when there is no diff #25736

@rittneje

Description

@rittneje

Describe the bug

This appears to be the same issue as #24602 purported to fix. I guess it fixed it for normal stack deployments but not the bootstrap.

If we run cdk bootstrap and there are no changes, we now get a confusing message:

✨ hotswap deployment skipped - no changes were detected (use --force to override)

Expected Behavior

This message should not be displayed unless a hotswap was requested. (Is that even a thing for cdk bootstrap?)

It should simply say the same thing it used to.

✅ Environment aws://{account}/{region} bootstrapped (no changes).

Current Behavior

See above.

Reproduction Steps

Run cdk bootstrap twice for a given account/region.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.74.0 (build 70e2a33)

Framework Version

No response

Node.js Version

v18.16.0

OS

Alpine 3.17

Language

Python

Language Version

3.11.3

Other information

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.effort/smallSmall work item – less than a day of effortp2package/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