Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SummitRoute/aws_managed_policies
AWS managed IAM policies
https://github.com/SummitRoute/aws_managed_policies
Last synced: 15 days ago
JSON representation
AWS managed IAM policies
- Host: GitHub
- URL: https://github.com/SummitRoute/aws_managed_policies
- Owner: SummitRoute
- Created: 2019-02-10T17:57:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-06T12:27:09.000Z (almost 3 years ago)
- Last Synced: 2024-08-01T04:02:22.717Z (3 months ago)
- Size: 478 KB
- Stars: 128
- Watchers: 20
- Forks: 56
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**THIS REPO IS NO LONGER UPDATED: USE https://github.com/z0ph/aws_managed_policies**
---
Collection of the AWS Managed IAM policies. These were acquired as follows:
```
aws iam list-policies > list-policies.json
cat list-policies.json | jq -cr '.Policies[] | select(.Arn | contains("iam::aws"))|.Arn +" "+ .DefaultVersionId+" "+.PolicyName' | xargs -n3 sh -c 'aws iam get-policy-version --policy-arn $1 --version-id $2 > "policies/$3"' sh
```This does the following:
- Gets the list of all policies in the account
- Finds the ones with an ARN containing "iam::aws", so that only the AWS managed policies are grabbed.
- Gets the ARN, current version id, and policy name (needed so we don't have a slash like the ARN does for writing a file)
- Calls `aws iam get-policy-version` with those values, and writes the output to a file using the policy name.