Skip to content

Getting [ERROR] KeyError: 'invokingEvent' while executing IAM_USER_MFA_ENABLED #415

@preethira

Description

@preethira

I am trying to execute the code from https://github.com/awslabs/aws-config-rules/blob/master/python/IAM_USER_MFA_ENABLED/IAM_USER_MFA_ENABLED.py in a lambda. I am getting the following error:

[ERROR] KeyError: 'invokingEvent'Traceback (most recent call last):  File "/var/task/lambda_function.py", line 365, in lambda_handler    invoking_event = json.loads(event['invokingEvent']) | [ERROR] KeyError:

Can someone please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions