Skip to content

Instantly share code, notes, and snippets.

View pexaorj's full-sized avatar

Fernando Pereira pexaorj

View GitHub Profile
@pexaorj
pexaorj / sec_groups_aws.py
Created September 20, 2018 23:08 — forked from toddlers/sec_groups_aws.py
Listing AWS Security groups with Python boto
#!/usr/bin/python
# Script will list all instances, all security groups and their rules for desired profile
# Before using script, you need to create "profile" file, which is ~/.aws/credentials where you put your AWS keys like this:
#
# [dev]
# aws_access_key_id = *****
# aws_secret_access_key = *****
#
# .. and then use it in this script