Join Slack
Powered by
Is there an option to say “delete EVERYTHING (=Dat...
# help
d
Daniel Gato
01/24/2022, 6:47 AM
Is there an option to say “delete EVERYTHING (=Databases, S3, Logs, Policies, etc) if stage is not production).
f
Frank
01/24/2022, 9:08 AM
If the stage is not production, do this:
app.setDefaultRemovalPolicy(RemovalPolicy.DESTROY);
Frank
01/24/2022, 9:09 AM
Here’s an example
https://docs.serverless-stack.com/constructs/App#setting-a-default-removal-policy
d
Daniel Gato
01/24/2022, 9:49 AM
I tried that one, seems to not be working
Daniel Gato
01/24/2022, 9:50 AM
Or maybe it doesn’t work when the delete is due to a failing stack? I have about 15 buckets right now, everytime my stack fails it deletes my bucket.
f
Frank
01/24/2022, 8:51 PM
What is not being deleted?
Open in Slack
Previous
Next