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 Respuesta
0
Respuesta aceptada

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 hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas