Created
October 4, 2019 02:55
-
-
Save ayosec/fbb3807889512fad627804c01ea57e56 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
role="$1" | |
aws iam list-role-policies --role-name "$role" \ | |
| jq -r '.PolicyNames[]' \ | |
| sort \ | |
| xargs -l1 aws iam get-role-policy --role-name "$role" --policy-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment