Created
January 4, 2016 09:55
-
-
Save kubek2k/86effe7ac6943dd4f2aa to your computer and use it in GitHub Desktop.
Get all AWS users with their access keys
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
aws iam list-users | jq '.Users[].UserName' | xargs -n1 -J % aws iam list-access-keys --user-name % | jq '.AccessKeyMetadata[].AccessKeyId + ":" + .AccessKeyMetadata[].UserName' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment