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
140 stars 130 forks source link

Diff in resourceOwnerTag naming #30

Open aivo-veriff opened 1 year ago

aivo-veriff commented 1 year ago

In access_key_auto_rotation\account_scan.py one adds resource_email

            # Update actions with resource owner email from tag
            if config.resourceOwnerTag is not '':
..
                    for action in user_actions:
                        action.update({"resource_email": resource_owner_email})

but in access_key_auto_rotation\main.py one is looking for resource_owner

        # Extract subsets of actions for resource owners
        resource_owners = {action.get("resource_owner") for action in action_queue}

resulting no resource_owners being found ..