Simple callback for sfn which will run before executing
the destroy command. It will search the stack for bucket
resources and delete all files within any found buckets.
First add the sfn-bucketpurge gem to the local bundle (in the ./Gemfile):
group :sfn do
gem 'sfn-bucketpurge'
endThen enable the sfn-bucketpurge callback in the .sfn configuration file:
Configuration.new do
...
callbacks do
require ['sfn-bucketpurge']
default ['bucket_purge']
end
end- Repository: https://github.com/sparkleformation/sfn-bucketpurge
- IRC: Freenode @ #sparkleformation
- Gitter: