AWS IAM Role/Policy permission viewer — see what a role or policy can do
Project description
catrole
catrole is a python pip package which let's you:
AWS IAM Role/Policy permission viewer — see what a role or policy can do.
Requirements
- Python >= 3.11
- AWS credentials configured (via
~/.aws/credentials, environment variables, or SSO) - A cross-account IAM role you can assume in target account(s)
Installation
From source (local)
git clone <repo-url>
cd cat-role
pip3 install .
For development (editable install):
pip3 install -e .
From PyPI (remote)
pip3 install catrole
Usage
catrole uses -R to specify an IAM role to assume in the target account.
If -R is not provided, catrole reads the role name from ~/.catrole.
Setting a default assume role
echo "my-readonly-role" > ~/.catrole
Once set, you can omit -R from all commands:
catrole -a 123456789012 -r MyAppRole
-R on the command line always takes precedence over ~/.catrole.
Scan a role
catrole -R my-readonly-role -a 123456789012 -r MyAppRole
Scan a policy
catrole -R my-readonly-role -a 123456789012 -p MyPolicy
Scan by ARN
catrole -R my-readonly-role -A arn:aws:iam::123456789012:role/MyAppRole
Search across all org accounts
catrole -R my-readonly-role -s '*lambda*'
Search within a single account
catrole -R my-readonly-role -s '*admin*' -a 123456789012
Results are printed as a table and automatically saved to a CSV file.
Run catrole -h for full help.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file catrole-0.1.7.tar.gz.
File metadata
- Download URL: catrole-0.1.7.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edfbe0e52518ade3aee3be0b180375bdd86c610f3f79d5276e36681a912d7c69
|
|
| MD5 |
7e97794dcf3e5ccd0624cd76c85c5962
|
|
| BLAKE2b-256 |
a96e6d86c2a3130aabec5ae2e02e8e1851c15df7440e26d61222ac3c9101b517
|
File details
Details for the file catrole-0.1.7-py3-none-any.whl.
File metadata
- Download URL: catrole-0.1.7-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
683625b4fc6b7c755b35354debd065ec0e3f8373f9ee59b641b0d96bf2b38f92
|
|
| MD5 |
23df1f53717d04897a6f18567807b8e0
|
|
| BLAKE2b-256 |
911aa56d7a70ec3fb1329bc97dfbbdc1b514f7fae01598878bc64a39d8ab786d
|