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 Resposta
0
Resposta aceita

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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas