Skip to content

Instantly share code, notes, and snippets.

@bertrand-caron
Created May 14, 2020 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bertrand-caron/f2637f23349a718e849aa940a60bb757 to your computer and use it in GitHub Desktop.
Save bertrand-caron/f2637f23349a718e849aa940a60bb757 to your computer and use it in GitHub Desktop.
List user roles and permissions for a AWS account
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