CDK not letting me delete SNS Topic, trapped dependency!

0

Hi,

I created an SNS Topic in Stack logging and used it in stacks prod and staging. However, now I want to get rid of this SNS topic and the associated infrastructure, but CDK is not letting me delete it. When I update the code to get rid of it and try to deploy my stacks, it kind of detects a cyclical dependency. It can't detect that I've delete the SNS topic and all dependent resources from all my stacks, it errors out when deploying logging first (because stacks staging and production depend on logging), saying that the SNS Topic is in use by staging and production.

Any help is appreciated.

1回答
0
承認された回答

I fixed it by deleting the resources manually and updating cloudformation as well to delete the resources from production and staging. Now CDK is able to deploy my changes.

Manav
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ