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.