Skip to content

Commit

Permalink
Merge pull request #240 from iainelder/patch-1
Browse files Browse the repository at this point in the history
Show how to update iam_definition.json
  • Loading branch information
rjcassara- authored Jul 25, 2024
2 parents 24f8d78 + b4b5c06 commit 614ef87
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,18 @@ bin/parliament
## Updating the privilege info
The IAM data is obtained from scraping the docs [here](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_actions-resources-contextkeys.html) and parsing this information with beautifulsoup using `./utils/update_iam_data.py`.

Use a script like this to generate a new `iam_definition.json`.

```bash
python3 -m venv ./venv
source ./venv/bin/activate
pip install requests beautifulsoup4
wget "https://raw.githubusercontent.com/duo-labs/parliament/main/utils/update_iam_data.py"
python ./update_iam_data.py > iam_definition.json
```

Find the Python environment in which you installed Parliament and overwrite the old `iam_definition.json`.

# Projects that use Parliament
- [CloudMapper](https://github.com/duo-labs/cloudmapper): Has functionality to audit AWS environments and will audit the IAM policies as part of that.
- [tf-parliament](https://github.com/rdkls/tf-parliament): Runs Parliament against terraform files
Expand Down

0 comments on commit 614ef87

Please sign in to comment.