Skip to content

Instantly share code, notes, and snippets.

@tom-butler
Created September 14, 2017 00:24
Show Gist options
  • Save tom-butler/b3bee7a2929f74ed4f19094e5ee84a16 to your computer and use it in GitHub Desktop.
Save tom-butler/b3bee7a2929f74ed4f19094e5ee84a16 to your computer and use it in GitHub Desktop.
list aws access keys
#!/bin/bash
for user in $(aws iam list-users --output text | awk '{print $NF}'); do
aws iam list-access-keys --user $user --output text
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment