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
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
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
Last Known Working CDK Library Version
No response
Expected Behavior
cdk diffto leave my stacks untouchedCurrent Behavior
cdk diffresults in a phantom stackReproduction Steps
cdk diffa 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