Daily Archives: 2 ianuarie, 2015

How to list all access keys in an amazon aws account

First of all, you’ll have to install the aws-cli utility:

Then you’ll have to run ‘aws configure’ command and put your access/secret keys.

Then run this command:

for i in `aws iam list-users | grep UserName | awk ‘{print $2}’ | sed ‘s/,//g’ | sed ‘s/”//g’`; do aws iam list-access-keys –user-name $i; done

Further processing is up to you.

%d blogeri au apreciat asta: