Get your Thanos on

So once in a while you feel like decluttering your life or maybe just in technical areas remove unneeded apps and libraries and clean up projects of unwanted cruft. When talking about the cloud I generally have the most experience with AWS.

On AWS we created an account for all our developers to play around and experiment. That goes excellent. People are learning and loving it and everyone knows more and more each time. Like children though they don't clean up after themselves so I made use of a little helper called aws-nuke.

This little helper has an excellent sane default of not actually applying anything. It only does so called dry runs. You give it a config file where you specify what to keep and what to target and so on. Then however if you are satisfied with the results you let it loose and snap your fingers for added dramatical effect and gone are your AWS resources. So you safe costs and be a bad ass while doing it. Every time someone will hear your snap your fingers they will fear that their cloud environment is gone.

One little thing though in the config file please specify for each region that you don't want to delete the default VPC. I forgot and all of a sudden all cloudformation and terraform actions did not work anymore.

#devops