Skip to content

Commit 614ef87

Browse files
authored
Merge pull request #240 from iainelder/patch-1
Show how to update iam_definition.json
2 parents 24f8d78 + b4b5c06 commit 614ef87

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,18 @@ bin/parliament
265265
## Updating the privilege info
266266
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`.
267267

268+
Use a script like this to generate a new `iam_definition.json`.
269+
270+
```bash
271+
python3 -m venv ./venv
272+
source ./venv/bin/activate
273+
pip install requests beautifulsoup4
274+
wget "https://raw.githubusercontent.com/duo-labs/parliament/main/utils/update_iam_data.py"
275+
python ./update_iam_data.py > iam_definition.json
276+
```
277+
278+
Find the Python environment in which you installed Parliament and overwrite the old `iam_definition.json`.
279+
268280
# Projects that use Parliament
269281
- [CloudMapper](https://github.com/duo-labs/cloudmapper): Has functionality to audit AWS environments and will audit the IAM policies as part of that.
270282
- [tf-parliament](https://github.com/rdkls/tf-parliament): Runs Parliament against terraform files

0 commit comments

Comments
 (0)