I'm stuck in a horrible mess.. I have a few stacks...
# help
m
I'm stuck in a horrible mess.. I have a few stacks in my app. Stack B depends on stack A for a secret which is exported, and I can't delete it because it says "Secrets Manager can't find the specified secret" (the secret exists, I don't know why it says this. I checked the references in the template and the secret and secret values exist that it refers to). I can't delete stack A because it says "Export test-ExportsOutputRefSecretsAppSecretsE2C09E50831EF5BE cannot be deleted as it is in use by test-Service ... (and 8 more)" I just want to delete my stacks but can't even do that. Any suggestions for how to nuke them?
t
If you remove the reference from all the stacks that need it then do sst deploy --stack EachStackOneByOne
You might be able to unstick it. I thought latest version of sst does this for you automatically
m
will try thx
problem is i can't deploy to any of them because they're in DELETE_FAILED
and i can't delete because it says it can't find the secret but i checked to make sure the referenced secrets exist
i am able to get a little farther if i delete the functions manually and then delete the stacks whilst "retaining" the functions
f
Oh man.. this sounds annoying. Did you manage to clean it up? I’d retain and manually remove them.
m
yeah it was pretty gnarly but eventually i did
had to manually delete lambda, then ENIs, then retain and delete stacks a bunch of times
i think something is not quite stable when there are cross-stack refs to secrets and you try to delete