aws-samples / aws-iam-access-key-auto-rotation

This set of CloudFormation templates and Python scripts will set up an auto-rotation function that will automatically rotate your AWS IAM User Access Keys every 90 days.
MIT No Attribution
134 stars 128 forks source link

Incorrect key name used for the "resource_owner" #22

Open shanereddy opened 1 year ago

shanereddy commented 1 year ago

Issue #, if available: None

Description of changes: Line 76 of main.py references "resource_owner" to retrieve the user email address, however, in account_scan.py the user email address is assigned to "resource_email" in the action data structure. I have changed the key name in account_scan.py to now be the correct key name of "resource_owner".

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.