Skip to content

Instantly share code, notes, and snippets.

@kubek2k
Created January 4, 2016 09:55
Show Gist options
  • Save kubek2k/86effe7ac6943dd4f2aa to your computer and use it in GitHub Desktop.
Save kubek2k/86effe7ac6943dd4f2aa to your computer and use it in GitHub Desktop.
Get all AWS users with their access keys
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