Skip to content

Instantly share code, notes, and snippets.

@eklypze
eklypze / nuke_sg.py
Created November 19, 2021 00:43 — forked from shanedroid/nuke_sg.py
Nuke any Unused EC2 Security Groups
#!/usr/bin/env python
## -*- coding: utf-8 -*-
"""Nuke any Unused EC2 Security Groups"""
import argparse, boto3, pprint
from botocore.exceptions import ClientError
from itertools import chain
pprint = pprint.PrettyPrinter(indent=4).pprint
def parse_args():