aws/aws-cdk

cdk: Destroy reports success when there is nothing to destroy

Open

#22,240 创建于 2022年9月26日

在 GitHub 查看
 (6 评论) (1 反应) (0 负责人)TypeScript (3,530 fork)batch import
effort/smallfeature-requestgood first issuep3package/tools

仓库指标

Star
 (10,710 star)
PR 合并指标
 (平均合并 14天 11小时) (30 天内合并 68 个 PR)

描述

Describe the bug

Configure AWS profile to an account that has not been bootstrapped with cdk. Run cdk destroy - cdk reports success.

Expected Behavior

cdk should report an error indicating that the selected stack does not exist.

Current Behavior

cdk incorrectly reports success in destroying the stack.

Reproduction Steps

Create a stack, switch accounts. execute: cdk destroy

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.43.1 (build c1ebb85)

Framework Version

No response

Node.js Version

v16.16.0

OS

MacOS Monterey

Language

Typescript

Language Version

Actually, javascript but drop down does not offer that option

Other information

No response

贡献者指南