CDK不让我删除SNS主题,陷入了依赖关系!

0

【以下的问题经过翻译处理】 嗨,

我在logging栈中创建了一个SNS主题,并在prodstaging栈中使用了它。然而,现在我想摆脱这个SNS主题和相关的基础设施,但是CDK不让我删除它。当我更新代码以摆脱它并尝试部署我的堆栈时,它似乎检测到了循环依赖。它无法检测到我已经从所有堆栈中删除了SNS主题和所有相关资源,当首先部署logging时会发生错误(因为stagingproduction依赖于logging),说SNS主题被stagingproduction使用。

任何帮助将不胜感激。

1 Answer
0

【以下的回答经过翻译处理】 我通过手动删除资源,并同时更新cloudformation来删除productionstaging中的资源来解决了这个问题。现在CDK可以部署我的更改。

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions