Last active
May 18, 2016 10:17
-
-
Save jdfitzgerald/697d5d9b8109866775b0 to your computer and use it in GitHub Desktop.
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
#relies on AWS CLI & jq for JSON processing | |
for name in `aws iam list-users | jq -r .Users[].UserName`; do aws iam list-access-keys --user-name $name | jq ' .AccessKeyMetadata[] | .UserName + " " + .AccessKeyId'; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment