Skip to content

Instantly share code, notes, and snippets.

View sellers's full-sized avatar

Sellers, Chris G. sellers

  • ITHAKA Harbors
  • Ann Arbor
View GitHub Profile
#!/usr/bin/env python
'''
# Find the IAM username belonging to the TARGET_ACCESS_KEY
# Useful for finding IAM user corresponding to a compromised AWS credential
# Usage:
# find_IAM.user AWS_ACCESS_KEY_ID
# Requirements:
#
# Environmental variables:
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY