Skip to content

Instantly share code, notes, and snippets.

@dgulinobw
dgulinobw / is_aws_ip.py
Last active August 29, 2015 14:23
Determine if IP is an AWS IP, and what service it is serving.
#!/usr/bin/env python
from __future__ import print_function
import requests
import json
import ipaddr #py2
#import ipaddress #py3
import sys
import pprint
@dgulinobw
dgulinobw / get_iam_rights_for_user.py
Last active March 27, 2018 19:49
Get all IAM rights for a particular user.
#!/usr/bin/env python
from __future__ import print_function
# Displays all the policies associated to IAM username
# Useful for reviewing IAM user rights
# Requirements:
#
# Environmental variables:
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
# python: