Skip to content

Instantly share code, notes, and snippets.

View Tibingeo's full-sized avatar
🏠
Working from home

Tibin George Tibingeo

🏠
Working from home
View GitHub Profile
@Tibingeo
Tibingeo / aws_sg_cleanup.py
Last active July 25, 2017 12:18 — forked from TomRyan-321/security-group-cleanup.py
Security Group Cleanup using boto3 with RDS check fixed
#!/usr/bin/env python
import boto3
import argparse
def lookup_by_id(sgid):
sg = ec2.get_all_security_groups(group_ids=sgid)
return sg[0].name