AWSDetonationLab
AWSDetonationLab copied to clipboard
automate the removal of s3 buckets
after cloudformation template is delete, the s3 buckets are kept if they have objects within them. We need to either add an option to choose buckets are deleted fully with a lambda function or some other solution.
ideas
- https://stackoverflow.com/questions/40383470/can-i-force-cloudformation-to-delete-non-empty-s3-bucket/40383846
- https://techblog.realtor.com/empty-trash-deleting-stack/
In addition to that, we should remove the DeletionPolicy
field since now it isn't removing any bucket, regardless of the data it contains:
https://github.com/sonofagl1tch/AWSDetonationLab/blob/8d92a326bb0a4875d7e93764d8ff9dd75a7d5a24/awsDetonationLab.template#L1480-L1484