Shah Hossain
02/13/2022, 6:38 AMExport dev-storage:ExportsOutputFn.... cannot be deleted as it is in use by dev-api
I tried renaming the table. But, that did not work either. Please suggest.Ashishkumar Pandey
02/13/2022, 12:24 PMTable
construct’s config :-
dynamodbTable: {
removalPolicy: RemovalPolicy.DESTROY,
},
by default some constructs don’t get deleted to prevent data loss. Table
, Bucket
and Auth
constructs and many others have this fail-safe and it can be overridden by the above config change.
Add the config change, deploy it and then remove the table, that should solve it.Ashishkumar Pandey
02/13/2022, 1:22 PMShah Hossain
02/13/2022, 1:23 PMError: CloudFormation cannot update a stack when a custom-named resource requires replacing. Rename dev-Referrals and update the stack again.
Then I tried to rename the table. But, ended up with the original error:
cannot be deleted as it is in use by dev-api
Ashishkumar Pandey
02/13/2022, 1:24 PMRoss Coundon
02/13/2022, 2:48 PMShah Hossain
02/13/2022, 4:28 PM...cannot be deleted as it is in use by dev-api
So, I guess my question is - how to delete an unused table?Jay
Frank
Frank
Frank
Frank
Shah Hossain
02/17/2022, 10:37 PMFrank