You can use Cloud Nuke:
https://github.com/gruntwork-io/cloud-nuke
Steps to use on mac:
- Install cloud-nuke using homebrew
brew install cloud-nuke
2. Destroy All (jokes please read the document here before you do anything)
THE NEXT STEPS ARE DESTRUCTIVE AND COMPLETELY IRREVERSIBLE, PROCEED WITH CAUTION!!!
cloud-nuke aws
3. When the below command is executed, this tool will delete all default VPCs and the rules for default security groups.
THE NEXT STEPS ARE DESTRUCTIVE AND COMPLETELY IRREVERSIBLE, PROCEED WITH CAUTION!!!
cloud-nuke defaults-aws