Created
May 14, 2020 01:44
-
-
Save bertrand-caron/f2637f23349a718e849aa940a60bb757 to your computer and use it in GitHub Desktop.
List user roles and permissions for a AWS account
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
module purge | |
for credential in aws-dev aws-uat; do | |
echo "Credentials: ${credential}" | |
module load ${credential} | |
aws iam list-users | |
aws iam list-roles | |
module unload ${credential} | |
echo "" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment