Skip to content

(cli): cdk diff will create an empty stack in REVIEW_IN_PROGRESS if run against an account the stack is not deployed to #1503

@SamStephens

Description

@SamStephens

Describe the bug

cdk diff will create an empty stack in REVIEW_IN_PROGRESS if run against an account the stack is not deployed to. I don't think there's anything you can do with the stack in this state except for delete it again.

Looking through past issues about this, it seems that the stack should be deleted after this happens, but I'm not seeing that.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Library Version

No response

Expected Behavior

cdk diff to leave my stacks untouched

Current Behavior

cdk diff results in a phantom stack

Reproduction Steps

cdk diff a stack against an account it is not present in.

Possible Solution

No response

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

Multiple versions (I've had this with several stacks)

AWS CDK CLI version

2.1120.0 (build acefbf8)

Node.js Version

v24.13.0

OS

Linux Min 22.3

Language

Python

Language Version

3.11.14

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions