This is my ground dump for my gadgets to speed up troubleshooting on AWS.
activity.py- This script collects activities for a specific AIM User / Role for granted and denied permissions.
- The value of this information is to appropriately grant only the bare minimum permissions and revoke the unnecessary ones.
- Dependencies:
boto3andtabulate(both required); install withpip install boto3 tabulate
- Dependencies:
Usage:
python3 activity.py <username/role_arn> <hours>
Example:
python3 activity.py AppUser 3
python3 activity.py arn:aws:iam::accountId:role/roleName 24
Output:
Show related ARNs or hit Ender to exit:
Feel free to report bugs, suggest features, and contribute to the code.


