Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import boto
import os
conn = boto.connect_ec2(os.getenv('AWS_ACCESS_KEY_ID'), os.getenv('AWS_SECRET_ACCESS_KEY'))
groups = conn.get_all_security_groups()
for group in groups:
conn.delete_security_group(group.split(":")[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment