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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠