AWSDetonationLab icon indicating copy to clipboard operation
AWSDetonationLab copied to clipboard

automate the removal of s3 buckets

Open sonofagl1tch opened this issue 5 years ago • 1 comments

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/

sonofagl1tch avatar Apr 22 '19 15:04 sonofagl1tch

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

mgmacias95 avatar Apr 23 '19 19:04 mgmacias95