Last active
December 5, 2023 09:44
-
-
Save dploeger/fbeea791c256659985d09534fee4362a to your computer and use it in GitHub Desktop.
Revisions
-
Dennis Ploeger revised this gist
Dec 5, 2023 . 1 changed file with 5 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ for POLICYARN in (aws iam list-policies --scope Local | jq -r .Policies[].Arn) for POLICYVERSION in (aws iam list-policy-versions --policy-arn $POLICYARN | jq -r .Versions[].VersionId) echo $POLICYARN/$POLICYVERSION aws iam get-policy-version --policy-arn $POLICYARN --version-id $POLICYVERSION end end -
Dennis Ploeger created this gist
Dec 5, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ for POLICYARN in (aws iam list-policies --scope Local | jq -r .Policies[].Arn) for POLICYVERSION in (aws iam list-policy-versions --policy-arn $POLICYARN | jq -r .Versions[].VersionId) aws iam get-policy-version --policy-arn $POLICYARN --version-id $POLICYVERSION end end > work/policies