This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Authored by Chad Smith on 3/10/2015 | |
# please feel free to contact me at arpcefxl@gmail.com with comments or questions | |
# assumes you have already run aws configure or are running in an ec2 role | |
import boto.ec2, sys | |
region = sys.argv[1] | |
secgroup = sys.argv[2] | |
conn = boto.ec2.connect_to_region(region) | |
allgroups = conn.get_all_security_groups() |