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.